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
65922b2e
Unverified
Commit
65922b2e
authored
Sep 04, 2019
by
yann300
Committed by
GitHub
Sep 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2308 from ethereum/LianaHus-patch-6
change selected corresponding to nightly check
parents
370d5369
2b498147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+10
-2
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
65922b2e
...
...
@@ -284,15 +284,23 @@ class CompilerContainer {
this
.
_updateLanguageSelector
()
}
_shouldBeAdded
(
version
)
{
return
!
version
.
includes
(
'nightly'
)
||
(
version
.
includes
(
'nightly'
)
&&
this
.
_view
.
includeNightlies
.
checked
)
}
_updateVersionSelector
()
{
// update selectedversion of previous one got filtered out
if
(
!
this
.
_shouldBeAdded
(
this
.
data
.
selectedVersion
))
{
this
.
data
.
selectedVersion
=
this
.
data
.
defaultVersion
}
this
.
_view
.
versionSelector
.
innerHTML
=
''
this
.
data
.
allversions
.
forEach
(
build
=>
{
const
option
=
build
.
path
===
this
.
data
.
selectedVersion
?
yo
`<option value="
${
build
.
path
}
" selected>
${
build
.
longVersion
}
</option>`
:
yo
`<option value="
${
build
.
path
}
">
${
build
.
longVersion
}
</option>`
if
(
!
option
.
innerText
.
includes
(
'nightly'
)
||
(
option
.
innerText
.
includes
(
'nightly'
)
&&
this
.
_view
.
includeNightlies
.
checked
))
{
if
(
this
.
_shouldBeAdded
(
option
.
innerText
))
{
this
.
_view
.
versionSelector
.
appendChild
(
option
)
}
})
...
...
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