mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
69d4852a6d
closes #4260 - Adds "tags" route inside of the settings routes. - Adds this route to router.js - Links the route from the settings.hbs template - Adds demo tags html in tag.hbs template - Adds flag for tagsUI
21 lines
703 B
JavaScript
21 lines
703 B
JavaScript
var ConfigInitializer = {
|
|
name: 'config',
|
|
|
|
initialize: function (container, application) {
|
|
var apps = $('body').data('apps'),
|
|
tagsUI = $('body').data('tagsui'),
|
|
fileStorage = $('body').data('filestorage'),
|
|
blogUrl = $('body').data('blogurl');
|
|
|
|
application.register(
|
|
'ghost:config', {apps: apps, fileStorage: fileStorage, blogUrl: blogUrl, tagsUI: tagsUI}, {instantiate: false}
|
|
);
|
|
|
|
application.inject('route', 'config', 'ghost:config');
|
|
application.inject('controller', 'config', 'ghost:config');
|
|
application.inject('component', 'config', 'ghost:config');
|
|
}
|
|
};
|
|
|
|
export default ConfigInitializer;
|