Skip to content

Commit

Permalink
Zowe Suite v1.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored May 11, 2022
2 parents ea07d2a + d7bf796 commit a465510
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
{
text: "Action 1 - Don't click me",
action: contextMenuAction1
},
{
text: "Action 3 - Disabled action",
action: contextMenuAction1,
disabled: true
}
], false)
}
Expand Down Expand Up @@ -330,8 +335,8 @@
<br></br>
<span class="bold-text">Desktop Components: </span>
<br></br>
<button class="iframe-button" type="button" onclick="testNotification()">Send a notification</button>
<button class="iframe-button" type="button" onclick="testContextMenu(event)">Spawn a context menu</button>
<button id="SIA_DesktopComp_Notifications" class="iframe-button" type="button" onclick="testNotification()">Send a notification</button>
<button id="SIA_DesktopComp_ContextMenu" class="iframe-button" type="button" onclick="testContextMenu(event)">Spawn a context menu</button>
</div>
<div class="iframe-single-app-mode" style="display: none">
<br></br>
Expand All @@ -355,7 +360,7 @@
<div>
<input class="iframe-input input-height input-corner" placeholder="Enter message here."
name="helloTextStandalone" id="helloTextStandalone" oninput="inputChanged()" style="width: 50%;"/>
<button class="iframe-button" id="runButton" onclick="sayHello()" disabled
<button class="iframe-button" id="runButtonStandalone" onclick="sayHello()" disabled
style="color: grey; border-color: grey;">Run</button>
</div>
<div>
Expand Down
10 changes: 10 additions & 0 deletions web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a465510

Please sign in to comment.