mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Removed redundant "View preview" link in saved draft notification
refs https://github.com/TryGhost/Team/issues/459 - post previews are now always accessible from the editor header so there's no need for a separate preview link that takes you out of the editor
This commit is contained in:
parent
4c9d9289ef
commit
4f50f0f870
1 changed files with 1 additions and 5 deletions
|
@ -869,13 +869,9 @@ export default Controller.extend({
|
||||||
type = capitalize(this.get('post.displayName'));
|
type = capitalize(this.get('post.displayName'));
|
||||||
path = this.get('post.url');
|
path = this.get('post.url');
|
||||||
actions = `<a href="${path}" target="_blank">View ${type}</a>`;
|
actions = `<a href="${path}" target="_blank">View ${type}</a>`;
|
||||||
} else {
|
|
||||||
type = 'Preview';
|
|
||||||
path = this.get('post.previewUrl');
|
|
||||||
actions = `<a href="${path}" target="_blank">View ${type}</a>`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notifications.showNotification(message, {type: 'success', actions: actions.htmlSafe(), delayed});
|
notifications.showNotification(message, {type: 'success', actions: (actions && actions.htmlSafe()), delayed});
|
||||||
},
|
},
|
||||||
|
|
||||||
_showScheduledNotification(delayed) {
|
_showScheduledNotification(delayed) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue