dematerialize record in any kind of created states in ssh key
This commit is contained in:
parent
767e49d95a
commit
81911777da
|
@ -56,7 +56,7 @@ Controller = Ember.ObjectController.extend Validations,
|
||||||
model = @get('model')
|
model = @get('model')
|
||||||
console.log model.get('currentState.stateName')
|
console.log model.get('currentState.stateName')
|
||||||
if model.get('currentState.stateName') == 'root.empty' ||
|
if model.get('currentState.stateName') == 'root.empty' ||
|
||||||
model.get('currentState.stateName') == 'root.loaded.created.uncommitted'
|
model.get('currentState.stateName').indexOf('root.loaded.created') != -1
|
||||||
@store.dematerializeRecord(model)
|
@store.dematerializeRecord(model)
|
||||||
|
|
||||||
@set('model', null)
|
@set('model', null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user