Commit 349ffd29 authored by aniket-engg's avatar aniket-engg Committed by Aniket

folder list improved

parent fd36b40b
......@@ -550,15 +550,9 @@ module.exports = class TestTab extends ViewPlugin {
}
updateDirList (keycode = 'none') {
// Initial load
if (keycode === 'none') {
this.testTabLogic.dirList('/').then((options) => {
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`))
})
} else {
const presentOptions = this.uiPathList.querySelectorAll('option')
// if '/' is pressed
if (keycode === 191) {
// Initial load
if (keycode === 'none' || keycode === 191) {
for (var o of presentOptions) o.remove()
this.testTabLogic.dirList('/').then((options) => {
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`))
......@@ -579,7 +573,6 @@ module.exports = class TestTab extends ViewPlugin {
this.updateGenerateFileAction().disabled = false
}
}
}
/*
It is not possible anymore to see folder from outside of the current workspace
......@@ -605,7 +598,9 @@ module.exports = class TestTab extends ViewPlugin {
data-id="uiPathInput"
name="utPath"
style="background-image: var(--primary);"
onkeyup=${(e) => this.updateDirList(e.keyCode)}
onkeyup=${(e) => {
if (e.keyCode) this.updateDirList(e.keyCode)
}}
onchange=${(e) => this.updateCurrentPath(e)}/>`
this.createTestFolder = yo`<button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment