Revert modifications to `getParentAndGrandparent`
This commit is contained in:
parent
14649c1398
commit
21ad67fc4f
|
@ -19,11 +19,7 @@ App.BaseRoute = Ember.Route.extend({
|
|||
grandParentKey = parts.join("/") + "/";
|
||||
}
|
||||
|
||||
return {
|
||||
parent: parentKey,
|
||||
grandParent: grandParentKey,
|
||||
isRoot: parentKey === '/'
|
||||
}
|
||||
return {grandParent: grandParentKey, parent: parentKey}
|
||||
},
|
||||
|
||||
removeDuplicateKeys: function(keys, matcher) {
|
||||
|
@ -135,7 +131,7 @@ App.KvShowRoute = App.BaseRoute.extend({
|
|||
controller.set('content', models.keys);
|
||||
controller.set('parentKey', parentKeys.parent);
|
||||
controller.set('grandParentKey', parentKeys.grandParent);
|
||||
controller.set('isRoot', parentKeys.isRoot);
|
||||
controller.set('isRoot', parentKeys.parent === '/');
|
||||
controller.set('newKey', App.Key.create());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue