mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 22:44:07 +03:00
0f17378b26
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
24 lines
1.0 KiB
JavaScript
24 lines
1.0 KiB
JavaScript
import DropdownService from 'ghost/utils/dropdown-service';
|
|
|
|
var dropdownInitializer = {
|
|
name: 'dropdown',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('dropdown:service', DropdownService);
|
|
|
|
// Inject dropdowns
|
|
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');
|
|
|
|
// 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');
|
|
}
|
|
};
|
|
|
|
export default dropdownInitializer;
|