mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
c45294717c
refs https://github.com/TryGhost/Team/issues/451 - Added mobile view to the post preview modal - Replaced tabs text with icons - Moved back button and added publish button - Changed copy-link design to be aligned with link preview in portal - Changed layout for social previews - Added images to the Twittr and Facebook previews - Added labels to the social previews - Changed styling for the "Preview post" button in editor
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);
|
|
}
|
|
}
|