mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
7c7c4962f9
no issue - bump deps - adjust usage for breaking changes... - https://github.com/cibernox/ember-power-select/blob/master/CHANGELOG.md#300-beta1 - https://github.com/cibernox/ember-basic-dropdown/blob/master/CHANGELOG.md#200-beta3 - https://github.com/cibernox/ember-power-datepicker/blob/master/CHANGELOG.md#070 - update overridden component and template files to match latest addon code - switch to class syntax w/decorators - adjust for angle bracket syntax
21 lines
597 B
JavaScript
21 lines
597 B
JavaScript
import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
|
|
import templateLayout from 'ember-basic-dropdown/templates/components/basic-dropdown';
|
|
import {layout} from '@ember-decorators/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
@layout(templateLayout)
|
|
class GhBasicDropdown extends BasicDropdown {
|
|
@service dropdown
|
|
|
|
onInit() {
|
|
this.dropdown.on('close', this, this.close);
|
|
}
|
|
|
|
willDestroy() {
|
|
this.dropdown.off('close', this, this.close);
|
|
super.willDestroyElement(...arguments);
|
|
}
|
|
}
|
|
|
|
export default GhBasicDropdown;
|