From 3b3d5f85bc403da6cec6732eec81ef32885beb93 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 10 Nov 2014 13:12:27 -0800 Subject: [PATCH] Reset slugValue when the user changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- core/client/controllers/settings/users/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/client/controllers/settings/users/user.js b/core/client/controllers/settings/users/user.js index 67efbaff40..0d13514b79 100644 --- a/core/client/controllers/settings/users/user.js +++ b/core/client/controllers/settings/users/user.js @@ -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,