mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Merge pull request #5546 from acburdine/title-fix-2
Fix blog title not updating after setup
This commit is contained in:
commit
a59b7183e1
@ -14,6 +14,7 @@ export default Ember.Controller.extend(ValidationEngine, {
|
||||
ghostPaths: Ember.inject.service('ghost-paths'),
|
||||
notifications: Ember.inject.service(),
|
||||
application: Ember.inject.controller(),
|
||||
config: Ember.inject.service(),
|
||||
|
||||
// ValidationEngine settings
|
||||
validationType: 'setup',
|
||||
@ -48,7 +49,8 @@ export default Ember.Controller.extend(ValidationEngine, {
|
||||
setup: function () {
|
||||
var self = this,
|
||||
data = self.getProperties('blogTitle', 'name', 'email', 'password', 'image'),
|
||||
notifications = this.get('notifications');
|
||||
notifications = this.get('notifications'),
|
||||
config = this.get('config');
|
||||
|
||||
this.toggleProperty('submitting');
|
||||
this.validate().then(function () {
|
||||
@ -65,6 +67,7 @@ export default Ember.Controller.extend(ValidationEngine, {
|
||||
}]
|
||||
}
|
||||
}).then(function (result) {
|
||||
config.set('blogTitle', data.blogTitle);
|
||||
// Don't call the success handler, otherwise we will be redirected to admin
|
||||
self.get('application').set('skipAuthSuccessHandler', true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user