1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00

Fixed custom message

This commit is contained in:
Adolfo Gómez García 2024-07-19 21:25:21 +02:00
parent 8a757ba60c
commit 4095295e80
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -112,11 +112,15 @@ export class ServiceComponent implements OnInit {
transport = this.service.transports[0];
}
if (this.service.custom_message_text !== null && this.service.custom_message_text !== undefined) {
const tr = transport;
if ((await this.api.gui.yesno(django.gettext('Service message'), this.service.custom_message_text)) === false) {
if (
(await this.api.gui.yesno(
django.gettext('Service message'),
this.service.custom_message_text + '<br/><p>' + django.gettext('Press "Yes" to continue, or "No" to cancel') + '</p>'
)) === false
) {
return;
}
console.debug('Launching service with transport', tr);
console.debug('Launching service with transport', transport);
}
this.api.executeCustomJSForServiceLaunch();
this.api.launchURL(transport.link);