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

fixed some names

This commit is contained in:
Adolfo Gómez García 2024-01-16 03:52:01 +01:00
parent 0e20f782ae
commit b0f7d43c6c
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
4 changed files with 11 additions and 11 deletions

View File

@ -110,7 +110,7 @@ export class Plugin {
) +
'&nbsp;</span>' +
'<a href="' +
this.api.config.urls.clientDownload +
this.api.config.urls.client_download +
'">' +
django.gettext('UDS Client Download') +
'</a>';

View File

@ -22,7 +22,7 @@
<!-- checkbox for remember -->
<div class="mfa-field" *ngIf="api.config.mfa.remember_device !== ''">
<mat-checkbox id="remember" name="remember">
<uds-translate>Remember me for {{ api.config.mfa.remember_device }}</uds-translate>
<uds-translate>Remember me for</uds-translate> {{ api.config.mfa.remember_device }}
</mat-checkbox>
</div>
<input type="hidden" name="remember" value="0" *ngIf="api.config.mfa.remember_device === ''"/>

View File

@ -110,7 +110,7 @@ export class UDSApiService implements UDSApiServiceType {
password: string,
domain: string
): Promise<any> {
const url = this.config.urls.updateTransportTicket.replace('param1', ticketId).replace('param2', scrambler);
const url = this.config.urls.update_transport_ticket.replace('param1', ticketId).replace('param2', scrambler);
return toPromise(
this.http.post<any>(url, {
username,
@ -122,11 +122,11 @@ export class UDSApiService implements UDSApiServiceType {
/* Images & static related */
galleryImageURL(imageId: string) {
return this.config.urls.galleryImage.replace('param1', imageId);
return this.config.urls.gallery_image.replace('param1', imageId);
}
transportIconURL(transportId: string) {
return this.config.urls.transportIcon.replace('param1', transportId);
return this.config.urls.transport_icon.replace('param1', transportId);
}
staticURL(url: string) {
@ -208,7 +208,7 @@ export class UDSApiService implements UDSApiServiceType {
* @returns Observable
*/
async getAuthCustomJavascript(authId: string): Promise<string> {
return toPromise(this.http.get(this.config.urls.customAuth + authId, { responseType: 'text' }));
return toPromise(this.http.get(this.config.urls.custom_auth + authId, { responseType: 'text' }));
}
// Switch dark/light theme

View File

@ -21,17 +21,17 @@ export interface UDSUrls {
readonly login: string;
readonly mfa: string;
readonly logout: string;
readonly customAuth: string;
readonly custom_auth: string;
readonly services: string;
readonly admin: string;
readonly enabler: string;
readonly status: string;
readonly action: string;
readonly galleryImage: string;
readonly transportIcon: string;
readonly clientDownload: string;
readonly gallery_image: string;
readonly transport_icon: string;
readonly client_download: string;
readonly error: string;
readonly updateTransportTicket: string;
readonly update_transport_ticket: string;
readonly launch: string;
}