Commit 922c533f authored by Alex Beregszaszi's avatar Alex Beregszaszi

Disable publish button if metadata is missing

parent e2aabbc9
......@@ -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.')
}
......
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