Commit 03caa281 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Udapp: make buttons consistent

parent d344b4b8
...@@ -616,10 +616,17 @@ UniversalDApp.prototype.getCallButton = function (args) { ...@@ -616,10 +616,17 @@ UniversalDApp.prototype.getCallButton = function (args) {
}) })
} }
var title
if (isConstructor) {
title = 'Create'
} else {
title = args.abi.name
}
var button = $('<button />') var button = $('<button />')
.addClass('call') .addClass('call')
.attr('title', args.abi.name) .attr('title', title)
.text(args.bytecode ? 'Create' : args.abi.name) .text(title)
.click(handleCallButtonClick) .click(handleCallButtonClick)
if (lookupOnly && !inputs.length) { if (lookupOnly && !inputs.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment