0
Fork 0
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:
Kevin Ansfield 2021-02-08 18:25:32 +00:00
parent 4c9d9289ef
commit 4f50f0f870

View file

@ -869,13 +869,9 @@ export default Controller.extend({
type = capitalize(this.get('post.displayName'));
path = this.get('post.url');
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) {