mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {action} from '@ember/object';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class GhEmailPreviewLink extends Component {
|
||
|
@service modals;
|
||
|
|
||
|
@action
|
||
|
openPreview(event) {
|
||
|
event.preventDefault();
|
||
|
return this.modals.open('modals/email-preview', this.args.data);
|
||
|
}
|
||
|
}
|