Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
349ffd29
Commit
349ffd29
authored
Mar 19, 2021
by
aniket-engg
Committed by
Aniket
May 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
folder list improved
parent
fd36b40b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+5
-10
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
349ffd29
...
...
@@ -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 presse
d
if
(
keycode
===
191
)
{
// Initial loa
d
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment