From 8eb9ae2a3f4a4163ff9df7d33388d88f69f50d58 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 30 Aug 2019 01:13:06 +0200 Subject: [PATCH] implemented a filtering of nighly builds --- src/app/tabs/compileTab/compilerContainer.js | 23 ++++++++++---------- src/app/tabs/styles/compile-tab-styles.js | 7 ++++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index 1fd2fbb368..2d1e3a8888 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,15 +189,9 @@ class CompilerContainer {
${this._view.versionSelector} -
- - +
+ + ${this._view.includeNightlies}
@@ -227,7 +224,7 @@ class CompilerContainer {
  • ${this._view.optimize} - +
  • ${this._view.hideWarningsBox} @@ -293,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;