Skip to content

Commit 01b5ba6

Browse files
committed
Fix user interface feedback for connection with wrong credentials
1 parent 68ab194 commit 01b5ba6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-cloud.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
$("select#node-input-property").empty();
8787
$("<option value='" + "" + "'> " + "No connection selected" + "</option>").appendTo("#node-input-property");
8888
$("#node-input-property").trigger("change");
89-
} else if (property_id !== "updating") {
89+
} else if (thing_id !== "updating" && property_id !== "updating" && thing_text !== " Wrong credentials or system unavailable.") {
9090
if (thing_id === undefined || thing_id === null || thing_id === "") {
9191
$("select#node-input-property").empty();
9292
$("<option value='" + "" + "'> " + "No thing selected" + "</option>").appendTo("#node-input-property");
@@ -167,6 +167,7 @@
167167
$("<option value='" + "" + "'> " + things.error + "</option>").appendTo("#node-input-thing");
168168
$("select#node-input-property").empty();
169169
$("<option value='" + "" + "'> " + things.error + "</option>").appendTo("#node-input-property");
170+
$("#node-input-thing").trigger("change");
170171
} else if (things && Array.isArray(things) && things.length !== 0) {
171172
$("<option value='" + "" + "'> " + "Select a thing" + "</option>").appendTo("#node-input-thing");
172173
for (const t of things) {

0 commit comments

Comments
 (0)