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
fd36b40b
Commit
fd36b40b
authored
Mar 19, 2021
by
aniket-engg
Committed by
Aniket
May 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate button disabled for custom dir
parent
c5cf7c3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+12
-3
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
fd36b40b
...
...
@@ -566,10 +566,18 @@ module.exports = class TestTab extends ViewPlugin {
}
else
{
let
matchFound
=
false
for
(
var
option
of
presentOptions
)
{
if
(
option
.
innerHTML
.
startsWith
(
this
.
inputPath
.
value
))
{
matchFound
=
true
}
if
(
option
.
innerHTML
.
startsWith
(
this
.
inputPath
.
value
))
matchFound
=
true
}
// If there is no matching folder in the workspace with entered text, enable Create button
if
(
!
matchFound
)
{
// Enable Create button
this
.
createTestFolder
.
disabled
=
false
// Disable Generate button because dir is not existing
this
.
updateGenerateFileAction
().
disabled
=
true
}
else
{
this
.
createTestFolder
.
disabled
=
true
this
.
updateGenerateFileAction
().
disabled
=
false
}
// If there is no matching folder in the workspace with entered text, enable create button
if
(
!
matchFound
)
this
.
createTestFolder
.
disabled
=
false
}
}
...
...
@@ -608,6 +616,7 @@ module.exports = class TestTab extends ViewPlugin {
onclick=
${(
e
)
=>
{
this
.
testTabLogic
.
generateTestFolder
(
this
.
inputPath
.
value
)
this
.
createTestFolder
.
disabled
=
true
this
.
updateGenerateFileAction
().
disabled
=
false
this
.
updateDirList
()
}}
>
Create
...
...
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