2015-02-12 21:22:32 -07:00
|
|
|
import Ember from 'ember';
|
2014-09-29 12:17:27 +01:00
|
|
|
import DropdownButton from 'ghost/components/gh-dropdown-button';
|
|
|
|
|
2015-10-28 11:36:45 +00:00
|
|
|
const {inject} = Ember;
|
|
|
|
|
|
|
|
function K() {
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
2015-05-25 21:10:50 -05:00
|
|
|
export default DropdownButton.extend({
|
2015-10-28 11:36:45 +00:00
|
|
|
dropdown: inject.service(),
|
2015-05-25 21:10:50 -05:00
|
|
|
|
2015-10-28 11:36:45 +00:00
|
|
|
click: K,
|
2014-10-24 21:09:50 +00:00
|
|
|
|
2015-10-28 11:36:45 +00:00
|
|
|
mouseEnter() {
|
|
|
|
this._super(...arguments);
|
2014-09-29 12:17:27 +01:00
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
},
|
2014-10-24 21:09:50 +00:00
|
|
|
|
2015-10-28 11:36:45 +00:00
|
|
|
mouseLeave() {
|
|
|
|
this._super(...arguments);
|
2014-09-29 12:17:27 +01:00
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
}
|
|
|
|
});
|