mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
20 lines
530 B
JavaScript
20 lines
530 B
JavaScript
import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
|
|
import layout from 'ember-basic-dropdown/templates/components/basic-dropdown';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default BasicDropdown.extend({
|
|
dropdown: service(),
|
|
|
|
layout,
|
|
|
|
didInsertElement() {
|
|
this._super(...arguments);
|
|
this.dropdown.on('close', this, this.close);
|
|
},
|
|
|
|
willDestroyElement() {
|
|
this._super(...arguments);
|
|
this.dropdown.off('close', this, this.close);
|
|
}
|
|
});
|