Merge pull request #2299 from ethereum/toasterIssue

filter for nightly builds
pull/1/head
Liana Husikyan 5 years ago committed by GitHub
commit c805b66d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      src/app/tabs/compileTab/compilerContainer.js
  2. 7
      src/app/tabs/styles/compile-tab-styles.js

@ -175,6 +175,9 @@ class CompilerContainer {
this._view.compilationButton = this.compilationButton()
this._view.includeNightlies = yo`
<input class="mr-0 ml-1" id="nightlies" type="checkbox" onchange=${this._updateVersionSelector.bind(this)}>
`
this._view.compileContainer = yo`
<section>
<!-- Select Compiler Version -->
@ -186,6 +189,10 @@ class CompilerContainer {
</div>
<div class="col-sm-8">
${this._view.versionSelector}
<div class="pt-0 ${css.nightlyBuilds}">
<label for="nightlies" class="text-dark p-0 m-0">Include nightly builds</label>
${this._view.includeNightlies}
</div>
</div>
</div>
<div class="row w-100 no-gutters mb-2">
@ -217,7 +224,7 @@ class CompilerContainer {
</li>
<li class="list-group-item form-group ${css.compilerConfig}">
${this._view.optimize}
<label for="optimize">Enable Optimization</label>
<label for="optimize">Enable optimization</label>
</li>
<li class="list-group-item form-group ${css.compilerConfig}">
${this._view.hideWarningsBox}
@ -283,7 +290,11 @@ class CompilerContainer {
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)) {
this._view.versionSelector.appendChild(option)
}
})
this._view.versionSelector.removeAttribute('disabled')
this.queryParams.update({ version: this.data.selectedVersion })

@ -37,6 +37,13 @@ const css = csjs`
display: block;
margin: 3% 0;
}
.nightlyBuilds {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-content: center;
align-items: center;
}
.autocompileContainer {
display: flex;
align-items: center;

Loading…
Cancel
Save