diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index 1f618df3c1..42ba952a0c 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -175,6 +175,9 @@ class CompilerContainer { this._view.compilationButton = this.compilationButton() + this._view.includeNightlies = yo` + + ` this._view.compileContainer = yo`
@@ -186,6 +189,10 @@ class CompilerContainer {
${this._view.versionSelector} +
+ + ${this._view.includeNightlies} +
@@ -217,7 +224,7 @@ class CompilerContainer {
  • ${this._view.optimize} - +
  • ${this._view.hideWarningsBox} @@ -283,7 +290,11 @@ class CompilerContainer { const option = build.path === this.data.selectedVersion ? yo`` : yo`` - this._view.versionSelector.appendChild(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 }) diff --git a/src/app/tabs/styles/compile-tab-styles.js b/src/app/tabs/styles/compile-tab-styles.js index 1c64be56a5..07bdeed9e7 100644 --- a/src/app/tabs/styles/compile-tab-styles.js +++ b/src/app/tabs/styles/compile-tab-styles.js @@ -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;