From dafbe305ad4e30c7dbbf172e15ff63ddddb8ce27 Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Tue, 23 Jun 2015 14:15:36 -0400 Subject: [PATCH] fix blog title not updating in nav menu closes #5474 - sets the blogTitle property of config when the title setting is changed --- app/controllers/settings/general.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/settings/general.js b/app/controllers/settings/general.js index 586e64cb9..b0a3864d9 100644 --- a/app/controllers/settings/general.js +++ b/app/controllers/settings/general.js @@ -3,6 +3,7 @@ import randomPassword from 'ghost/utils/random-password'; export default Ember.Controller.extend({ notifications: Ember.inject.service(), + config: Ember.inject.service(), selectedTheme: null, @@ -51,9 +52,11 @@ export default Ember.Controller.extend({ actions: { save: function () { - var notifications = this.get('notifications'); + var notifications = this.get('notifications'), + config = this.get('config'); return this.get('model').save().then(function (model) { + config.set('blogTitle', model.get('title')); notifications.showSuccess('Settings successfully saved.'); return model;