Commit 6a92be25 authored by Alex Beregszaszi's avatar Alex Beregszaszi

udapp: do not display the ABI input format if no contracts are supplied

parent e4065608
......@@ -135,6 +135,11 @@ UniversalDApp.prototype.getBalance = function (address, cb) {
UniversalDApp.prototype.render = function () {
var self = this;
// NOTE: don't display anything if there are no contracts to display
if (self.contracts.length === 0) {
return self.$el;
}
var $legend = $('<div class="legend" />')
.append($('<div class="attach"/>').text('Attach'))
.append($('<div class="transact"/>').text('Transact'))
......@@ -142,6 +147,7 @@ UniversalDApp.prototype.render = function () {
self.$el.append($legend);
// NOTE: this might be used in the future
if (self.contracts.length === 0) {
self.$el.append(self.getABIInputForm());
} else {
......
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