style fix for plus btn

pull/5370/head
LianaHus 5 years ago committed by Liana Husikyan
parent 19b2392206
commit 85edcbb9bd
  1. 11
      src/app/tabs/compileTab/compilerContainer.js

@ -209,8 +209,8 @@ class CompilerContainer {
<div class="row w-100 no-gutters mb-2"> <div class="row w-100 no-gutters mb-2">
<div class="col-sm-4"> <div class="col-sm-4">
<div class="d-flex flex-row justify-content-end"> <div class="d-flex flex-row justify-content-end">
<label class="${css.compilerLabel} input-group-text pr-0 border-0" for="versionSelector"> <label class="${css.compilerLabel} input-group-text pr-0 border-0 w-100" for="versionSelector">
<button class="far fa-plus-square border-0 bg-light text-dark btn-sm" onclick=${this.loadCompiler.bind(this)} title="Add a custom compiler with URL"></button> <button class="far fa-plus-square border-0 p-0 m-2 text-dark btn-sm" onclick=${this.loadCompiler.bind(this)} title="Add a custom compiler with URL"></button>
Compiler Compiler
</label> </label>
</div> </div>
@ -269,7 +269,7 @@ class CompilerContainer {
modalDialogCustom.prompt( modalDialogCustom.prompt(
'Add a custom compiler', 'Add a custom compiler',
'URL', 'URL',
'https://203137-40892817-gh.circle-artifacts.com/0/soljson.js', // removed me before merge '',
(url) => { (url) => {
this.addCustomCompiler(url) this.addCustomCompiler(url)
} }
@ -278,7 +278,6 @@ class CompilerContainer {
addCustomCompiler (url) { addCustomCompiler (url) {
this.data.selectedVersion = this._view.versionSelector.value this.data.selectedVersion = this._view.versionSelector.value
this.data.customVersion = this._view.versionSelector.value // todo remove
this._updateVersionSelector(url) this._updateVersionSelector(url)
} }
@ -357,7 +356,6 @@ class CompilerContainer {
let url let url
if (customUrl) { if (customUrl) {
this.data.selectedVersion = customUrl this.data.selectedVersion = customUrl
this.data.version = 'custom' // TODO REMOVE
this._view.versionSelector.appendChild(yo`<option value="${customUrl}" selected>custom</option>`) this._view.versionSelector.appendChild(yo`<option value="${customUrl}" selected>custom</option>`)
url = customUrl url = customUrl
} else if (this.data.selectedVersion === 'builtin') { } else if (this.data.selectedVersion === 'builtin') {
@ -397,13 +395,12 @@ class CompilerContainer {
} }
setVersionText (text) { setVersionText (text) {
this.data.version = text // todo remove
if (this._view.version) this._view.version.innerText = text if (this._view.version) this._view.version.innerText = text
} }
fetchAllVersion (callback) { fetchAllVersion (callback) {
minixhr(`${this.data.baseurl}/list.json`, (json, event) => { minixhr(`${this.data.baseurl}/list.json`, (json, event) => {
// @TODO: optimise and cache results to improve app loading times // @TODO: optimise and cache results to improve app loading times #2461
var allversions, selectedVersion var allversions, selectedVersion
if (event.type !== 'error') { if (event.type !== 'error') {
try { try {

Loading…
Cancel
Save