diff --git a/lib/modules/webserver/backend/contracts/components/contract-ui.js b/lib/modules/webserver/backend/contracts/components/contract-ui.js
index 164e06db9..04f1f5aae 100644
--- a/lib/modules/webserver/backend/contracts/components/contract-ui.js
+++ b/lib/modules/webserver/backend/contracts/components/contract-ui.js
@@ -84,14 +84,21 @@ class ContractUI extends React.Component {
Deploy
-
+ {
+ this.props.definition.code == "" ? Interface or set to not deploy
: ""
+ }
+
Functions
-
-
-
+ {
+ this.props.definition.code != "" ?
+
+ : ""
+ }
+
+
diff --git a/lib/modules/webserver/backend/contracts/components/function-area.js b/lib/modules/webserver/backend/contracts/components/function-area.js
index 9be7bcc53..381cedb71 100644
--- a/lib/modules/webserver/backend/contracts/components/function-area.js
+++ b/lib/modules/webserver/backend/contracts/components/function-area.js
@@ -13,7 +13,7 @@ class FunctionArea extends React.Component {
{
this.props.contract.options.jsonInterface
.filter(item => item.type == type)
- .map((item, i) => )
+ .map((item, i) => )
}
;
}
diff --git a/lib/modules/webserver/backend/contracts/components/function-form.js b/lib/modules/webserver/backend/contracts/components/function-form.js
index 9e557b1e5..50ac2d3b0 100644
--- a/lib/modules/webserver/backend/contracts/components/function-form.js
+++ b/lib/modules/webserver/backend/contracts/components/function-form.js
@@ -44,7 +44,7 @@ class FunctionForm extends React.Component {
-
+
{
receipt != null || !this.state.error && this.state.message != null
diff --git a/lib/modules/webserver/backend/contracts/components/function.js b/lib/modules/webserver/backend/contracts/components/function.js
index dffd6aaf3..4f8320321 100644
--- a/lib/modules/webserver/backend/contracts/components/function.js
+++ b/lib/modules/webserver/backend/contracts/components/function.js
@@ -194,6 +194,21 @@ class Function extends React.Component {
}
render(){
+
+ let btnClass = "btn ml-auto ";
+ let disabled = false;
+
+ if(this.state.onRequest){
+ disabled = true;
+ }
+
+ if(this.props.definition.code == ""){
+ btnClass += "btn-secondary";
+ disabled = true;
+ } else {
+ btnClass += "btn-primary";
+ }
+
return
{ (context) => (
@@ -208,11 +223,18 @@ class Function extends React.Component {
-