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:
parent
0e20f782ae
commit
b0f7d43c6c
@ -110,7 +110,7 @@ export class Plugin {
|
||||
) +
|
||||
' </span>' +
|
||||
'<a href="' +
|
||||
this.api.config.urls.clientDownload +
|
||||
this.api.config.urls.client_download +
|
||||
'">' +
|
||||
django.gettext('UDS Client Download') +
|
||||
'</a>';
|
||||
|
@ -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 === ''"/>
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user