2022-01-25 16:13:18 +03:00
|
|
|
import Component from '@glimmer/component';
|
2022-03-14 13:52:04 +03:00
|
|
|
import EmailPreviewModal from './modals/email-preview';
|
2022-01-25 16:13:18 +03:00
|
|
|
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();
|
2022-03-14 13:52:04 +03:00
|
|
|
return this.modals.open(EmailPreviewModal, this.args.data);
|
2022-01-25 16:13:18 +03:00
|
|
|
}
|
|
|
|
}
|