Skip to content

Commit e3f62eb

Browse files
committed
changes
1 parent d3c15c1 commit e3f62eb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • services/language_translation

services/language_translation/v2.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<i class="fa fa-question-circle"></i><b> Please wait: </b> Checking for bound service credentials...
2121
</div>
2222
</div>
23+
<div id="credentials-not-found" class="form-row">
24+
<div class="form-tips">
25+
<i class="fa fa-question-circle"></i><b> Wrong credentials. </b> Could not retrieve models.
26+
</div>
27+
</div>
2328
<div class="form-row">
2429
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
2530
<input type="text" id="node-input-name" placeholder="Name">
@@ -344,11 +349,15 @@
344349
})
345350

346351
if ((first_launch || !models) && logon) {
352+
$('#credentials-not-found').hide();
347353
getModels();
348354
first_launch = false;
349-
} else {
355+
} else if (models) {
356+
$('#credentials-not-found').hide();
350357
handlersUI();
351358
selectAction();
359+
} else {
360+
$('#credentials-not-found').show();
352361
}
353362
}
354363

0 commit comments

Comments
 (0)