mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
7f7d2cafc6
refs https://github.com/TryGhost/Team/issues/451 - disabled email tab when previewing a page (pages can't be emailed) - added share preview url footer to browser tab - added send preview footer to email tab - added first pass at social tab contents
13 lines
438 B
JavaScript
13 lines
438 B
JavaScript
import Component from '@glimmer/component';
|
|
import copyTextToClipboard from 'ghost-admin/utils/copy-text-to-clipboard';
|
|
import {task} from 'ember-concurrency-decorators';
|
|
import {timeout} from 'ember-concurrency';
|
|
|
|
export default class ModalPostPreviewBrowserComponent extends Component {
|
|
@task
|
|
*copyPreviewUrl() {
|
|
copyTextToClipboard(this.args.post.previewUrl);
|
|
yield timeout(this.isTesting ? 50 : 3000);
|
|
}
|
|
}
|