mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed save button not appearing on title changes
no issue - the title comparison in the editor's `hasDirtyAttributes` CP was comparing properties on the wrong object so never returned `true` when the title was changed
This commit is contained in:
parent
c16bc682cf
commit
a7d7c4bf6d
@ -971,8 +971,8 @@ export default class EditorController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// titleScratch isn't an attr so needs a manual dirty check
|
// titleScratch isn't an attr so needs a manual dirty check
|
||||||
if (this.titleScratch !== this.title) {
|
if (post.titleScratch !== post.title) {
|
||||||
this._leaveModalReason = {reason: 'title is different', context: {current: this.title, scratch: this.titleScratch}};
|
this._leaveModalReason = {reason: 'title is different', context: {current: post.title, scratch: post.titleScratch}};
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user