mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 12:44:57 +03:00
78088820d6
- 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; |