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

Fixed download url for notifications on Client download

This commit is contained in:
Adolfo Gómez García 2021-04-30 11:13:28 +02:00
parent 5f4614ffa7
commit 4b9b86e1c6
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export class Plugin {
);
} else {
// If Component took too long...
if (Date.now() - readyTime > this.delay * 25) {
if (Date.now() - readyTime > this.delay * 5) {
// Wait 5 times the default delay
alert.componentInstance.data.title =
django.gettext('Service ready') +
@ -65,12 +65,12 @@ export class Plugin {
'It seems that you don\'t have UDS Client installed. Please, install it from here: '
) +
'</span>' +
'<a href="/client-download">' +
'<a href="' + this.api.config.urls.clientDownload + '">' +
django.gettext('UDS Client Download') +
'</a>';
}
}
window.setTimeout(checker, this.delay / 2); // Recheck after delay seconds
window.setTimeout(checker, this.delay); // Recheck after delay seconds
} else if (data.status === 'accessed') {
alert.componentInstance.data.body = django.gettext(
'Machine ready, waiting for UDS Client'

View File

@ -28,6 +28,7 @@ export interface UDSUrls {
readonly action: string;
readonly galleryImage: string;
readonly transportIcon: string;
readonly clientDownload: string;
readonly launch: string;
}