Ghost/ghost/admin/app/components/gh-popover-button.js
Austin Burdine fb239054a0 convert remainder of components to use ember-cli-shims (#101)
follow up from #95
- converts components to use ember-cli-shims
2016-06-30 19:14:25 +01:00

23 lines
522 B
JavaScript

import injectService from 'ember-service/inject';
import DropdownButton from 'ghost-admin/components/gh-dropdown-button';
function K() {
return this;
}
export default DropdownButton.extend({
dropdown: injectService(),
click: K,
mouseEnter() {
this._super(...arguments);
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
},
mouseLeave() {
this._super(...arguments);
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
}
});