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:
parent
8a757ba60c
commit
4095295e80
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user