mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
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:
parent
67a5f6cd0a
commit
3b3d5f85bc
@ -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,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user