don't highlight when content changed

pull/3094/head
yann300 6 years ago
parent 9dfd37df0b
commit c07b479b37
  1. 8
      src/app/tabs/compile-tab.js

@ -84,8 +84,6 @@ module.exports = class CompileTab {
}) })
self._deps.editor.event.register('contentChanged', function changedFile () { self._deps.editor.event.register('contentChanged', function changedFile () {
if (!self._view.compileIcon) return if (!self._view.compileIcon) return
const compileTab = document.querySelector('.compileView') // @TODO: compileView tab
compileTab.style.color = styles.colors.red // @TODO: compileView tab
self._view.compileIcon.classList.add(`${css.bouncingIcon}`) // @TODO: compileView tab self._view.compileIcon.classList.add(`${css.bouncingIcon}`) // @TODO: compileView tab
}) })
self._deps.compiler.event.register('loadingCompiler', function start () { self._deps.compiler.event.register('loadingCompiler', function start () {
@ -258,6 +256,7 @@ module.exports = class CompileTab {
</div>` </div>`
self._view.el = yo` self._view.el = yo`
<div class="${css.compileTabView}" id="compileTabView"> <div class="${css.compileTabView}" id="compileTabView">
<div class="${css.title}">Solidity compiler</div>
${self._view.compileContainer} ${self._view.compileContainer}
${self._view.contractEl} ${self._view.contractEl}
${self._view.errorContainerHead} ${self._view.errorContainerHead}
@ -454,6 +453,11 @@ module.exports = class CompileTab {
} }
const css = csjs` const css = csjs`
.title {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 1em;
}
.panicError { .panicError {
color: red; color: red;
font-size: 20px; font-size: 20px;

Loading…
Cancel
Save