diff --git a/assets/css/universal-dapp.css b/assets/css/universal-dapp.css index 19f263da29..63556ea0c0 100644 --- a/assets/css/universal-dapp.css +++ b/assets/css/universal-dapp.css @@ -216,6 +216,12 @@ width: 21px; } +.udapp .contractProperty button:disabled { + cursor: not-allowed; + background-color: white; + border-color: lightgray; +} + .udapp .contractProperty .call { background-color: #FF8B8B; border-color: #FF8B8B; diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 3b9805552f..f3d96e834b 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -213,9 +213,24 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) { $close.click(function () { self.$el.remove(); }); $createInterface.append($close); } - var $newButton = self.getInstanceInterface(contract); var $atButton = $('