mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #5477 from acburdine/title-fix
Fix blog title in nav menu not updating
This commit is contained in:
commit
6cfc1808a4
1 changed files with 4 additions and 1 deletions
|
@ -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: Ember.computed('model.activeTheme', 'themes', function () {
|
||||
var activeTheme = this.get('model.activeTheme'),
|
||||
|
@ -63,9 +64,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue