mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +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'),
|
ghostPaths: Ember.inject.service('ghost-paths'),
|
||||||
notifications: Ember.inject.service(),
|
notifications: Ember.inject.service(),
|
||||||
application: Ember.inject.controller(),
|
application: Ember.inject.controller(),
|
||||||
|
config: Ember.inject.service(),
|
||||||
|
|
||||||
// ValidationEngine settings
|
// ValidationEngine settings
|
||||||
validationType: 'setup',
|
validationType: 'setup',
|
||||||
@ -48,7 +49,8 @@ export default Ember.Controller.extend(ValidationEngine, {
|
|||||||
setup: function () {
|
setup: function () {
|
||||||
var self = this,
|
var self = this,
|
||||||
data = self.getProperties('blogTitle', 'name', 'email', 'password', 'image'),
|
data = self.getProperties('blogTitle', 'name', 'email', 'password', 'image'),
|
||||||
notifications = this.get('notifications');
|
notifications = this.get('notifications'),
|
||||||
|
config = this.get('config');
|
||||||
|
|
||||||
this.toggleProperty('submitting');
|
this.toggleProperty('submitting');
|
||||||
this.validate().then(function () {
|
this.validate().then(function () {
|
||||||
@ -65,6 +67,7 @@ export default Ember.Controller.extend(ValidationEngine, {
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
config.set('blogTitle', data.blogTitle);
|
||||||
// Don't call the success handler, otherwise we will be redirected to admin
|
// Don't call the success handler, otherwise we will be redirected to admin
|
||||||
self.get('application').set('skipAuthSuccessHandler', true);
|
self.get('application').set('skipAuthSuccessHandler', true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user