Disable publish button if metadata is missing

pull/1/head
Alex Beregszaszi 8 years ago
parent e2aabbc963
commit 922c533f14
  1. 2
      src/universal-dapp.js

@ -214,7 +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.')
}
if (contract.metadata.length === 0) {
$publishButton.attr('disabled', 'disabled')
$publishButton.attr('title', 'This contract does not implement all functions and thus cannot be published.')
}

Loading…
Cancel
Save