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