1
0
Fork 0

Solve bug on KeyValueView when not on cubbyhole.

This commit is contained in:
Kitteh 2021-04-18 12:00:26 +01:00
parent 04c415fd8e
commit c0dfff76b0

View file

@ -20,11 +20,12 @@ export class KeyValueViewPage extends Page {
setTitleElement(pageState);
pageContent.appendChild(makeElement({
tag: "p",
condition: pageState.currentMountType == "cubbyhole",
text: "In cubbyhole, secrets can be stored as long as the lease of your token is valid. They will be deleted when lease is expired and can only be viewed by your current token.",
}));
if (pageState.currentMountType == "cubbyhole") {
pageContent.appendChild(makeElement({
tag: "p",
text: "In cubbyhole, secrets can be stored as long as the lease of your token is valid. They will be deleted when lease is expired and can only be viewed by your current token.",
}));
}
let newButton = makeElement({
tag: "button",