From c4b63e5bb4b6a69a4fd1dc1578fda27e36514941 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 8 Aug 2017 10:36:44 +0200 Subject: [PATCH] remove loading spinner && fix tab dom id --- src/app/loading-spinner.js | 26 -------------------------- src/app/tabbed-menu.js | 19 +------------------ 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 src/app/loading-spinner.js diff --git a/src/app/loading-spinner.js b/src/app/loading-spinner.js deleted file mode 100644 index ee440a7be9..0000000000 --- a/src/app/loading-spinner.js +++ /dev/null @@ -1,26 +0,0 @@ -var yo = require('yo-yo') -// -------------- styling ---------------------- -var csjs = require('csjs-inject') - -module.exports = loadingSpinner - -var css = csjs` - .loader { - display: inline-block; - margin-left: .3em; - border: 2px solid orange; - border-top: 2px solid #F4F6FF; /* Light blue */ - border-radius: 50%; - width: 8px; - height: 8px; - animation: spin 2s linear infinite; - } - @keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } - } -` -function loadingSpinner () { - var el = yo`
` - return el -} diff --git a/src/app/tabbed-menu.js b/src/app/tabbed-menu.js index 6630116e2c..fba6c74cdd 100644 --- a/src/app/tabbed-menu.js +++ b/src/app/tabbed-menu.js @@ -1,5 +1,4 @@ var $ = require('jquery') -var loadingSpinner = require('./loading-spinner') module.exports = tabbedMenu @@ -14,23 +13,7 @@ function tabbedMenu (container, appAPI, events, opts) { }) // initialize tabbed menu - selectTab(container.querySelector('.envView')) - - // add event listeners for loading spinner - events.compiler.register('loadingCompiler', function start () { - var settingsTab = document.querySelector('.settingsView') - if (settingsTab.children.length) return - - var spinner = loadingSpinner() - settingsTab.appendChild(spinner) - - appAPI.warnCompilerLoading('Solidity compiler is currently loading. Please wait a moment...') - events.compiler.register('compilerLoaded', finish) - function finish () { - events.compiler.unregister('compilerLoaded', finish) - settingsTab.removeChild(spinner) - } - }) + selectTab(container.querySelector('.compileView')) // select tab function selectTab (el) {