From f8696575a05ba13927a1280c510ca7874d3d90b2 Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Tue, 14 Apr 2015 11:48:31 +0100 Subject: [PATCH] Show correct type in publish button Closes #5138 Shows the correct type (post or page) in the publish button --- ghost/admin/app/views/editor-save-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/app/views/editor-save-button.js b/ghost/admin/app/views/editor-save-button.js index d7ee7369b6..ede5406dc5 100644 --- a/ghost/admin/app/views/editor-save-button.js +++ b/ghost/admin/app/views/editor-save-button.js @@ -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'); }) });