|
|
@ -286,6 +286,7 @@ function compileTab (container, appAPI, appEvents, opts) { |
|
|
|
|
|
|
|
|
|
|
|
function details () { |
|
|
|
function details () { |
|
|
|
var select = el.querySelector('select') |
|
|
|
var select = el.querySelector('select') |
|
|
|
|
|
|
|
if (select.children.length > 0 && select.selectedIndex >= 0) { |
|
|
|
var contractName = select.children[select.selectedIndex].innerText |
|
|
|
var contractName = select.children[select.selectedIndex].innerText |
|
|
|
var details = contractsDetails[contractName] |
|
|
|
var details = contractsDetails[contractName] |
|
|
|
var keys = Object.keys(contractsDetails[contractName]) |
|
|
|
var keys = Object.keys(contractsDetails[contractName]) |
|
|
@ -296,9 +297,11 @@ function compileTab (container, appAPI, appEvents, opts) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
modalDialog(contractName, log, {label: 'OK'}, {label: ''}) |
|
|
|
modalDialog(contractName, log, {label: 'OK'}, {label: ''}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function publish (appAPI) { |
|
|
|
function publish (appAPI) { |
|
|
|
var selectContractNames = document.querySelector(`.${css.contractNames.classNames[0]}`) |
|
|
|
var selectContractNames = document.querySelector(`.${css.contractNames.classNames[0]}`) |
|
|
|
|
|
|
|
if (selectContractNames.children.length > 0 && selectContractNames.selectedIndex >= 0) { |
|
|
|
var contract = contractsDetails[selectContractNames.children[selectContractNames.selectedIndex].innerText] |
|
|
|
var contract = contractsDetails[selectContractNames.children[selectContractNames.selectedIndex].innerText] |
|
|
|
publishOnSwarm(contract, appAPI, function (err) { |
|
|
|
publishOnSwarm(contract, appAPI, function (err) { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
@ -308,6 +311,7 @@ function compileTab (container, appAPI, appEvents, opts) { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return el |
|
|
|
return el |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|