Fixed start page children, better password prompt
This commit is contained in:
parent
fc415265de
commit
f25616328d
@ -54,7 +54,11 @@ export class NodeUI extends Component {
|
|||||||
let page = ''
|
let page = ''
|
||||||
switch(this.page.value) {
|
switch(this.page.value) {
|
||||||
case 'node':
|
case 'node':
|
||||||
if(node.ID > 0) {
|
if(node.ID == 0) {
|
||||||
|
page = html`
|
||||||
|
${children.length > 0 ? html`<div class="child-nodes">${children}</div>` : html``}
|
||||||
|
`
|
||||||
|
} else {
|
||||||
let padlock = ''
|
let padlock = ''
|
||||||
if(node.CryptoKeyID > 0)
|
if(node.CryptoKeyID > 0)
|
||||||
padlock = html`<img src="/images/${window._VERSION}/padlock-black.svg" style="height: 24px;" />`
|
padlock = html`<img src="/images/${window._VERSION}/padlock-black.svg" style="height: 24px;" />`
|
||||||
@ -300,7 +304,7 @@ class NodeContent extends Component {
|
|||||||
textarea.parentNode.dataset.replicatedValue = textarea.value
|
textarea.parentNode.dataset.replicatedValue = textarea.value
|
||||||
}//}}}
|
}//}}}
|
||||||
unlock() {//{{{
|
unlock() {//{{{
|
||||||
let pass = prompt("Password")
|
let pass = prompt(`Password for "${this.props.model.description}"`)
|
||||||
if(!pass)
|
if(!pass)
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -482,7 +486,7 @@ export class Node {
|
|||||||
// Ask user to unlock key first
|
// Ask user to unlock key first
|
||||||
var pass = null
|
var pass = null
|
||||||
while(pass || obj_key.status() == 'locked') {
|
while(pass || obj_key.status() == 'locked') {
|
||||||
pass = prompt("Password")
|
pass = prompt(`Password for "${obj_key.description}"`)
|
||||||
if(!pass)
|
if(!pass)
|
||||||
throw new Error(`Key "${obj_key.description}" is locked`)
|
throw new Error(`Key "${obj_key.description}" is locked`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user