Disable publish button if create is disabled

pull/1/head
Alex Beregszaszi 8 years ago
parent e6ab0dc7aa
commit 8f630012d8
  1. 6
      assets/css/universal-dapp.css
  2. 3
      src/universal-dapp.js

@ -179,6 +179,12 @@
padding: 0.25em;
}
.udapp button:disabled {
cursor: not-allowed;
background-color: white;
border-color: lightgray;
}
.udapp .atAddress {
background-color: #B1EAC5;
border-color: #B1EAC5;

@ -214,6 +214,9 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
$createButton.text('Create')
$createButton.attr('disabled', 'disabled')
$createButton.attr('title', 'This contract does not implement all functions and thus cannot be created.')
$publishButton.attr('disabled', 'disabled')
$publishButton.attr('title', 'This contract does not implement all functions and thus cannot be published.')
}
return $createInterface

Loading…
Cancel
Save