0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/initializers/dropdown.js

24 lines
1 KiB
JavaScript
Raw Normal View History

2014-09-29 06:17:27 -05:00
import DropdownService from 'ghost/utils/dropdown-service';
2014-09-28 10:39:25 -05:00
var dropdownInitializer = {
name: 'dropdown',
initialize: function (container, application) {
application.register('dropdown:service', DropdownService);
2014-09-29 06:17:27 -05:00
// Inject dropdowns
2014-09-28 10:39:25 -05:00
application.inject('component:gh-dropdown', 'dropdown', 'dropdown:service');
application.inject('component:gh-dropdown-button', 'dropdown', 'dropdown:service');
application.inject('controller:modals.delete-post', 'dropdown', 'dropdown:service');
application.inject('controller:modals.transfer-owner', 'dropdown', 'dropdown:service');
application.inject('route:application', 'dropdown', 'dropdown:service');
2014-09-29 06:17:27 -05:00
// Inject popovers
application.inject('component:gh-popover', 'dropdown', 'dropdown:service');
application.inject('component:gh-popover-button', 'dropdown', 'dropdown:service');
application.inject('route:application', 'dropdown', 'dropdown:service');
2014-09-28 10:39:25 -05:00
}
};
export default dropdownInitializer;