mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
27 lines
529 B
JavaScript
27 lines
529 B
JavaScript
import Ember from 'ember';
|
|
import DropdownButton from 'ghost/components/gh-dropdown-button';
|
|
|
|
const {
|
|
inject: {service}
|
|
} = Ember;
|
|
|
|
function K() {
|
|
return this;
|
|
}
|
|
|
|
export default DropdownButton.extend({
|
|
dropdown: service(),
|
|
|
|
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);
|
|
}
|
|
});
|