diff --git a/src/app/debugger/debuggerUI/TxBrowser.js b/src/app/debugger/debuggerUI/TxBrowser.js
index 12abb5137a..81b1a431be 100644
--- a/src/app/debugger/debuggerUI/TxBrowser.js
+++ b/src/app/debugger/debuggerUI/TxBrowser.js
@@ -84,30 +84,47 @@ TxBrowser.prototype.setState = function (state) {
TxBrowser.prototype.render = function () {
var self = this
- let action = yo``
- var view = yo`
-
-
-
-
-
- ${action}
-
+ this.state.txNumberInput = yo`
+
+ `
+ let txButton = yo`
+
+ `
+ var view = yo`
+
+
+
+ ${this.state.txNumberInput}
-
-
`
+
+ ${txButton}
+
+
+
+
+ `
if (this.state.debugging) {
view.querySelectorAll('input').forEach(element => { element.setAttribute('disabled', '') })
}
if (!this.state.txNumber) {
- action.setAttribute('disabled', 'disabled')
+ view.querySelector("button[id='load']").setAttribute('disabled', '')
+ } else {
+ this.state.txNumberInput.removeAttribute('diabled', '')
}
if (!this.view) {
this.view = view
@@ -116,4 +133,15 @@ TxBrowser.prototype.render = function () {
return view
}
+TxBrowser.prototype.txInputChanged = function (event) {
+ // todo check validation of txnumber in the input element, use
+ // required
+ // oninvalid="setCustomValidity('Please provide a valid transaction number, must start with 0x and have length of 22')"
+ // pattern="^0[x,X]+[0-9a-fA-F]{22}"
+ // this.state.txNumberInput.setCustomValidity('')
+
+ this.state.txNumber = event.target.value
+ yo.update(this.view, this.render())
+}
+
module.exports = TxBrowser
diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js
index b4b24f2841..2d0c33ada1 100644
--- a/src/app/files/file-explorer.js
+++ b/src/app/files/file-explorer.js
@@ -157,15 +157,16 @@ function fileExplorer (localRegistry, files, menuItems) {
var isRoot = data.path === self.files.type
return yo`
-
+ >
+ ${key.split('/').pop()}
+
${isRoot ? self.renderMenuItems() : ''}
`
@@ -179,7 +180,7 @@ function fileExplorer (localRegistry, files, menuItems) {
MENU_HANDLE = contextMenu(event, {
'Rename': () => {
if (self.files.readonly) { return tooltip('cannot rename folder. ' + self.files.type + ' is a read only explorer') }
- var name = label.querySelector('label[data-path="' + key + '"]')
+ var name = label.querySelector('span[data-path="' + key + '"]')
if (name) editModeOn(name)
},
'Delete': () => {
@@ -196,7 +197,7 @@ function fileExplorer (localRegistry, files, menuItems) {
if (!self.files.readonly) {
actions['Rename'] = () => {
if (self.files.readonly) { return tooltip('cannot rename file. ' + self.files.type + ' is a read only explorer') }
- var name = label.querySelector('label[data-path="' + key + '"]')
+ var name = label.querySelector('span[data-path="' + key + '"]')
if (name) editModeOn(name)
}
actions['Delete'] = () => {
@@ -522,12 +523,12 @@ fileExplorer.prototype.renderMenuItems = function () {
items = this.menuItems.map(({action, title, icon}) => {
if (action === 'uploadFile') {
return yo`
-
+
+
`
} else {
return yo`
diff --git a/src/app/panels/file-panel.js b/src/app/panels/file-panel.js
index 2c8d844611..c63117ba95 100644
--- a/src/app/panels/file-panel.js
+++ b/src/app/panels/file-panel.js
@@ -83,7 +83,7 @@ module.exports = class Filepanel extends BaseApi {
return yo`
-
+
${fileExplorer.init()}
${fileSystemExplorer.init()}
${swarmExplorer.init()}
diff --git a/src/app/panels/styles/file-panel-styles.js b/src/app/panels/styles/file-panel-styles.js
index 6effb8a4f1..a2fc6a7c67 100644
--- a/src/app/panels/styles/file-panel-styles.js
+++ b/src/app/panels/styles/file-panel-styles.js
@@ -16,6 +16,9 @@ var css = csjs`
padding-left : 6px;
padding-top : 6px;
}
+ .fileExplorerTree {
+ cursor : default;
+ }
.gist {
padding : 10px;
}
diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js
index f32a7bad35..3405f121d9 100644
--- a/src/app/tabs/runTab/contractDropdown.js
+++ b/src/app/tabs/runTab/contractDropdown.js
@@ -47,12 +47,13 @@ class ContractDropdownUI {
this.compFails = yo`
`
var info = yo`
`
- this.atAddressButtonInput = yo`
`
+ this.atAddress = yo`
`
+ this.atAddressButtonInput = yo`
`
this.selectContractNames = yo`
`
this.createPanel = yo`
`
this.orLabel = yo`
or
`
- var el = yo`
+ let el = yo`
${this.selectContractNames} ${this.compFails} ${info}
@@ -61,7 +62,7 @@ class ContractDropdownUI {
${this.createPanel}
${this.orLabel}
@@ -69,9 +70,20 @@ class ContractDropdownUI {
`
this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this))
this.setInputParamsPlaceHolder()
+ if (!this.el) {
+ this.el = el
+ }
return el
}
+ atAddressChanged (event) {
+ if (!this.atAddressButtonInput.value) {
+ this.atAddress.setAttribute('disabled', 'true')
+ } else {
+ this.atAddress.removeAttribute('disabled')
+ }
+ }
+
changeCurrentFile (currentFile) {
if (!document.querySelector(`.${css.contractNames}`)) return
document.querySelector(`.${css.contractNames}`).classList.remove(css.contractNamesError)
diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js
index c92f49efb9..e0f6c37f30 100644
--- a/src/app/ui/landing-page/landing-page.js
+++ b/src/app/ui/landing-page/landing-page.js
@@ -38,6 +38,8 @@ let css = csjs`
.jumboBtnContainer {
float: left;
padding-top: 15px;
+ display: flex;
+ white-space: nowrap;
}
.headlineContainer {
float: left;
@@ -45,16 +47,15 @@ let css = csjs`
margin: 0 50px 0 70px;
}
.hpSections {
+ min-width: 640px;
margin: 0 60px;
}
- .solidityBtn {
- margin-right: 40px;
- }
.labelIt {
margin-bottom: 0;
}
.seeAll {
margin-top: 7px;
+ white-space: nowrap;
}
.importFrom p {
margin-right: 10px;
@@ -66,10 +67,9 @@ let css = csjs`
.logoContainer img{
height: 65px;
}
- .learnmore {
- margin-right: 20px;
+ .enviroments {
+ display: flex;
}
-
}
`
@@ -193,18 +193,18 @@ export class LandingPage extends BaseApi {
The new layout has arrived
-
-
+
+
-
+
Environments
-
-
+
+
@@ -240,7 +240,12 @@ export class LandingPage extends BaseApi {
Featured Plugins
{ startPipeline() }}>Pipeline
{ startDebugger() }}>Debugger
-
+
+
+
Resources
diff --git a/test-browser/commands/addAtAddressInstance.js b/test-browser/commands/addAtAddressInstance.js
index 31879a6601..a612c3f229 100644
--- a/test-browser/commands/addAtAddressInstance.js
+++ b/test-browser/commands/addAtAddressInstance.js
@@ -14,7 +14,7 @@ class addAtAddressInstance extends EventEmitter {
function addInstance (browser, address, isValidFormat, isValidChecksum, callback) {
browser.clickLaunchIcon('run').clearValue('.ataddressinput').setValue('.ataddressinput', address, function () {
- browser.click('div[class^="atAddress"]')
+ browser.click('button[id^="runAndDeployAtAdressButton"]')
.execute(function () {
var ret = document.querySelector('div[class^="modal-body"] div').innerHTML
document.querySelector('#modal-footer-ok').click()