Reset slugValue when the user changes

Closes #4411
- Previously, saving the user’s slug would lead to the slug value being
‘stuck’ on that saved value, even if one navigated to a different
user’s profile settings.
This commit is contained in:
Felix Rieseberg 2014-11-10 13:12:27 -08:00
parent 67a5f6cd0a
commit 3b3d5f85bc

View File

@ -1,5 +1,6 @@
import SlugGenerator from 'ghost/models/slug-generator';
import isNumber from 'ghost/utils/isNumber';
import boundOneWay from 'ghost/utils/bound-one-way';
var SettingsUserController = Ember.ObjectController.extend({
@ -7,7 +8,7 @@ var SettingsUserController = Ember.ObjectController.extend({
email: Ember.computed.readOnly('user.email'),
slugValue: Ember.computed.oneWay('user.slug'),
slugValue: boundOneWay('user.slug'),
lastPromise: null,