mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
ui: fix edit view breadcrumbs
This commit is contained in:
parent
8d36cf39dd
commit
32d0374a5a
@ -95,13 +95,14 @@ App.KvShowController.reopen({
|
|||||||
data: newKey.get('Value')
|
data: newKey.get('Value')
|
||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
controller.set('isLoading', false)
|
controller.set('isLoading', false)
|
||||||
|
|
||||||
// transition to the right place
|
// transition to the right place
|
||||||
console.log(newKey.get('Key'));
|
|
||||||
if (newKey.get('isFolder') == true) {
|
if (newKey.get('isFolder') == true) {
|
||||||
controller.transitionToRoute('kv.show', newKey.get('urlSafeKey'));
|
controller.transitionToRoute('kv.show', newKey.get('urlSafeKey'));
|
||||||
} else {
|
} else {
|
||||||
controller.transitionToRoute('kv.edit', newKey.get('urlSafeKey'));
|
controller.transitionToRoute('kv.edit', newKey.get('urlSafeKey'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload the keys in the left column
|
// Reload the keys in the left column
|
||||||
controller.get('keys').reload()
|
controller.get('keys').reload()
|
||||||
}).fail(function(response) {
|
}).fail(function(response) {
|
||||||
|
@ -174,6 +174,9 @@ App.KvEditRoute = App.BaseRoute.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
controller.set('parentKey', parentKey);
|
||||||
|
controller.set('grandParentKey', grandParentKey);
|
||||||
|
|
||||||
// If we don't have the cached model from our
|
// If we don't have the cached model from our
|
||||||
// the kv.show controller, we need to go get it,
|
// the kv.show controller, we need to go get it,
|
||||||
// otherwise we just load what we have.
|
// otherwise we just load what we have.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user