mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
fb239054a0
follow up from #95 - converts components to use ember-cli-shims
23 lines
522 B
JavaScript
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);
|
|
}
|
|
});
|