mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Show correct type in publish button
Closes #5138 Shows the correct type (post or page) in the publish button
This commit is contained in:
parent
8f354ddbc2
commit
f8696575a0
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ var EditorSaveButtonView = Ember.View.extend({
|
|||
return this.get('controller.model.isPublished') !== this.get('controller.willPublish');
|
||||
}),
|
||||
|
||||
publishText: Ember.computed('controller.model.isPublished', 'controller.pageOrPost', function () {
|
||||
publishText: Ember.computed('controller.model.isPublished', 'controller.postOrPage', function () {
|
||||
return this.get('controller.model.isPublished') ? 'Update ' + this.get('controller.postOrPage') : 'Publish Now';
|
||||
}),
|
||||
|
||||
|
@ -21,7 +21,7 @@ var EditorSaveButtonView = Ember.View.extend({
|
|||
return 'Delete ' + this.get('controller.postOrPage');
|
||||
}),
|
||||
|
||||
saveText: Ember.computed('controller.willPublish', function () {
|
||||
saveText: Ember.computed('controller.willPublish', 'publishText', 'draftText', function () {
|
||||
return this.get('controller.willPublish') ? this.get('publishText') : this.get('draftText');
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue