1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-12-22 17:33:48 +03:00

Fix error visualization on HTML5 status check[F

This commit is contained in:
Adolfo Gómez García 2021-04-29 12:37:37 +02:00
parent 71c9fc80c1
commit 3c3e0c71f0

View File

@ -92,11 +92,11 @@ export class Plugin {
0,
// Now UDS tries to check status before closing dialog...
new Observable<boolean>((observer) => {
const notifyError = () => {
const notifyError = (error: string = null) => {
window.setTimeout(() => {
this.showAlert(
django.gettext('Error'),
django.gettext(
error || django.gettext(
'Error communicating with your service. Please, retry again.'
),
5000
@ -132,7 +132,7 @@ export class Plugin {
} else if (!data.running) {
observer.next(true);
observer.complete();
notifyError();
notifyError(data.error);
} else {
window.setTimeout(checker, this.delay); // Recheck after 5 seconds
}