mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
Fixed "View post" rather than "View page" in save notifications
no issue - the post/page conditional was looking at the old `post.page` property rather than the `post.displayName` that was added when posts and pages became separate models
This commit is contained in:
parent
94d63c2599
commit
b965e7f57f
|
@ -812,7 +812,7 @@ export default Controller.extend({
|
|||
let actions, type, path;
|
||||
|
||||
if (status === 'published' || status === 'scheduled') {
|
||||
type = this.get('post.page') ? 'Page' : 'Post';
|
||||
type = this.get('post.displayName') === 'page' ? 'Page' : 'Post';
|
||||
path = this.get('post.url');
|
||||
actions = `<a href="${path}" target="_blank">View ${type}</a>`;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue