From 4f50f0f8700ca49c1174f4254156a94217c692fc Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 8 Feb 2021 18:25:32 +0000 Subject: [PATCH] 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 --- ghost/admin/app/controllers/editor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ghost/admin/app/controllers/editor.js b/ghost/admin/app/controllers/editor.js index 058b497940..1dcea24698 100644 --- a/ghost/admin/app/controllers/editor.js +++ b/ghost/admin/app/controllers/editor.js @@ -869,13 +869,9 @@ export default Controller.extend({ type = capitalize(this.get('post.displayName')); path = this.get('post.url'); actions = `View ${type}`; - } else { - type = 'Preview'; - path = this.get('post.previewUrl'); - actions = `View ${type}`; } - notifications.showNotification(message, {type: 'success', actions: actions.htmlSafe(), delayed}); + notifications.showNotification(message, {type: 'success', actions: (actions && actions.htmlSafe()), delayed}); }, _showScheduledNotification(delayed) {