|
@ -125,7 +125,7 @@ Dialog { |
|
|
function loadParameters() { |
|
|
function loadParameters() { |
|
|
paramsModel = [] |
|
|
paramsModel = [] |
|
|
if (functionComboBox.currentIndex >= 0 && functionComboBox.currentIndex < functionsModel.count) { |
|
|
if (functionComboBox.currentIndex >= 0 && functionComboBox.currentIndex < functionsModel.count) { |
|
|
var contract = codeModel.contracts[TransactionHelper.contractFromToken(contractCreationComboBox.currentValue())]; |
|
|
var contract = codeModel.contracts[TransactionHelper.contractFromToken(recipientsAccount.currentValue())]; |
|
|
if (contract) { |
|
|
if (contract) { |
|
|
var func = getFunction(functionComboBox.currentText, contract); |
|
|
var func = getFunction(functionComboBox.currentText, contract); |
|
|
if (func) { |
|
|
if (func) { |
|
@ -498,11 +498,9 @@ Dialog { |
|
|
paramScroll.visible = paramsModel.length > 0 |
|
|
paramScroll.visible = paramsModel.length > 0 |
|
|
paramScroll.Layout.preferredHeight = paramsModel.length < 6 ? paramsModel.length * 30 : 205 |
|
|
paramScroll.Layout.preferredHeight = paramsModel.length < 6 ? paramsModel.length * 30 : 205 |
|
|
if (paramsModel.length === 0) |
|
|
if (paramsModel.length === 0) |
|
|
{ |
|
|
|
|
|
paramScroll.height = 0 |
|
|
paramScroll.height = 0 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RowLayout |
|
|
RowLayout |
|
|
{ |
|
|
{ |
|
|