Introduce compile button

pull/1/head
Alex Beregszaszi 9 years ago
parent cbb75404f3
commit 3cea49f6f6
  1. 1
      index.html
  2. 4
      src/app.js

@ -91,6 +91,7 @@
<div class="crow">
<label for="editorWrap"><input id="editorWrap" type="checkbox">Text Wrap</label>
<label for="optimize"><input id="optimize" type="checkbox">Enable Optimization</label>
<button id="compile" title="Compile source code"><i class="fa fa-cog"></i> Compile</button>
</div>
</div>
<div id="publishView">

@ -436,6 +436,10 @@ var run = function () {
var renderer = new Renderer(editor, executionContext.web3(), updateFiles, udapp, executionContext, formalVerification.event, compiler.event); // eslint-disable-line
$('#compile').click(function () {
compiler.compile();
});
executionContext.event.register('contextChanged', this, function (context) {
compiler.compile();
});

Loading…
Cancel
Save