Fix #26.
This commit is contained in:
parent
c1d0bb0331
commit
fb2478705a
|
@ -136,6 +136,7 @@ export function setTitleElement(pageState) {
|
||||||
tag: "a",
|
tag: "a",
|
||||||
text: secretPath + " ",
|
text: secretPath + " ",
|
||||||
onclick: _ => {
|
onclick: _ => {
|
||||||
|
pageState.currentSecretVersion = "0";
|
||||||
if (pageState.currentMountType.startsWith("kv")) {
|
if (pageState.currentMountType.startsWith("kv")) {
|
||||||
pageState.currentSecretPath = secretPaths.slice(0, index + 1);
|
pageState.currentSecretPath = secretPaths.slice(0, index + 1);
|
||||||
changePage("KEY_VALUE_VIEW");
|
changePage("KEY_VALUE_VIEW");
|
||||||
|
|
|
@ -15,7 +15,6 @@ export class KeyValueSecretPage extends Page {
|
||||||
if (pageState.currentSecretVersion != "0") {
|
if (pageState.currentSecretVersion != "0") {
|
||||||
pageState.currentSecretVersion = "0";
|
pageState.currentSecretVersion = "0";
|
||||||
changePage("KEY_VALUE_VERSIONS");
|
changePage("KEY_VALUE_VERSIONS");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
pageState.currentSecret = "";
|
pageState.currentSecret = "";
|
||||||
changePage("KEY_VALUE_VIEW");
|
changePage("KEY_VALUE_VIEW");
|
||||||
|
|
|
@ -10,6 +10,9 @@ export class KeyValueVersionsPage extends Page {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
goBack() {
|
goBack() {
|
||||||
|
if (pageState.currentSecretVersion != "0") {
|
||||||
|
pageState.currentSecretVersion = "0";
|
||||||
|
}
|
||||||
changePage("KEY_VALUE_SECRET");
|
changePage("KEY_VALUE_SECRET");
|
||||||
}
|
}
|
||||||
async render() {
|
async render() {
|
||||||
|
|
Loading…
Reference in a new issue