mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
0f17378b26
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
17 lines
461 B
JavaScript
17 lines
461 B
JavaScript
import DropdownMixin from 'ghost/mixins/dropdown-mixin';
|
|
|
|
var DropdownButton = Ember.Component.extend(DropdownMixin, {
|
|
tagName: 'button',
|
|
|
|
// matches with the dropdown this button toggles
|
|
dropdownName: null,
|
|
|
|
// Notify dropdown service this dropdown should be toggled
|
|
click: function (event) {
|
|
this._super(event);
|
|
this.get('dropdown').toggleDropdown(this.get('dropdownName'), this);
|
|
}
|
|
});
|
|
|
|
export default DropdownButton;
|