mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
8836375ca6
- All JS should use single quotes
14 lines
442 B
JavaScript
14 lines
442 B
JavaScript
import PopoverMixin from 'ghost/mixins/popover-mixin';
|
|
|
|
var PopoverButton = Ember.Component.extend(PopoverMixin, {
|
|
tagName: 'button',
|
|
/*matches with the popover this button toggles*/
|
|
popoverName: null,
|
|
/*Notify popover service this popover should be toggled*/
|
|
click: function (event) {
|
|
this._super(event);
|
|
this.get('popover').togglePopover(this.get('popoverName'));
|
|
}
|
|
});
|
|
|
|
export default PopoverButton; |