Browse Source

Revert modifications to `getParentAndGrandparent`

pull/124/head
William Tisäter 11 years ago committed by William Tisäter
parent
commit
d40b3ae6a6
  1. 8
      ui/javascripts/app/routes.js

8
ui/javascripts/app/routes.js

@ -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…
Cancel
Save