mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03: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
9906fe6800
commit
0a2530c1cc
@ -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 New Issue
Block a user