diff --git a/web/html/index.html b/web/html/index.html
index 1105f38..363c369 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -162,6 +162,11 @@
{
text: "Action 1 - Don't click me",
action: contextMenuAction1
+ },
+ {
+ text: "Action 3 - Disabled action",
+ action: contextMenuAction1,
+ disabled: true
}
], false)
}
@@ -330,8 +335,8 @@
Desktop Components:
-
-
+
+
@@ -355,7 +360,7 @@
-
diff --git a/web/js/main.js b/web/js/main.js
index d1c9ff2..4a9e83f 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -235,6 +235,16 @@ function inputChanged() {
document.getElementById('runButton').style.color = "grey";
document.getElementById('runButton').style.borderColor = "grey";
}
+
+ if(document.getElementById('helloTextStandalone').value) {
+ document.getElementById('runButtonStandalone').disabled = false;
+ document.getElementById('runButtonStandalone').style.color = "#047cc0";
+ document.getElementById('runButtonStandalone').style.borderColor = "#047cc0";
+ } else {
+ document.getElementById('runButtonStandalone').disabled = true;
+ document.getElementById('runButtonStandalone').style.color = "grey";
+ document.getElementById('runButtonStandalone').style.borderColor = "grey";
+ }
}
async function sayHello() {