Fixed upload page

This commit is contained in:
Magnus Åhall 2024-01-05 21:28:14 +01:00
parent afa113b8b7
commit b05e24ce42

View File

@ -565,7 +565,7 @@ class Menu extends Component {
<div id="menu"> <div id="menu">
<div class="section">Current note</div> <div class="section">Current note</div>
<div class="item" onclick=${()=>{ nodeui.renameNode(); nodeui.menu.value = false }}>Rename</div> <div class="item" onclick=${()=>{ nodeui.renameNode(); nodeui.menu.value = false }}>Rename</div>
<div class="item" onclick=${()=>{ nodeui.upload.value = true; nodeui.menu.value = false }}>Upload</div> <div class="item" onclick=${()=>{ nodeui.showPage('upload'); nodeui.menu.value = false }}>Upload</div>
<div class="item " onclick=${()=>{ nodeui.showPage('node-properties'); nodeui.menu.value = false }}>Properties</div> <div class="item " onclick=${()=>{ nodeui.showPage('node-properties'); nodeui.menu.value = false }}>Properties</div>
<div class="item separator" onclick=${()=>{ nodeui.deleteNode(); nodeui.menu.value = false }}>Delete</div> <div class="item separator" onclick=${()=>{ nodeui.deleteNode(); nodeui.menu.value = false }}>Delete</div>
@ -592,7 +592,7 @@ class UploadUI extends Component {
} }
return html` return html`
<div id="blackout" onclick=${()=>nodeui.upload.value = false}></div> <div id="blackout" onclick=${()=>nodeui.showPage('node')}></div>
<div id="upload"> <div id="upload">
<input type="file" ref=${this.file} onchange=${()=>this.upload()} multiple /> <input type="file" ref=${this.file} onchange=${()=>this.upload()} multiple />
<div class="files"> <div class="files">
@ -629,7 +629,7 @@ class UploadUI extends Component {
this.fileRefs[i].current.classList.add("done") this.fileRefs[i].current.classList.add("done")
this.progressRefs[i].current.classList.add("done") this.progressRefs[i].current.classList.add("done")
this.props.nodeui.upload.value = false this.props.nodeui.showPage('node')
}) })
} }
}//}}} }//}}}