MOBILE-3565 core: Fix errors when compiling in prod mode
parent
1d794f42b4
commit
06c7035834
|
@ -50,20 +50,20 @@ export class CoreLoadingComponent implements OnInit, OnChanges, AfterViewInit {
|
||||||
@Input() message?: string; // Message to show while loading.
|
@Input() message?: string; // Message to show while loading.
|
||||||
@ViewChild('content') content?: ElementRef;
|
@ViewChild('content') content?: ElementRef;
|
||||||
|
|
||||||
protected uniqueId!: string;
|
uniqueId: string;
|
||||||
protected element: HTMLElement; // Current element.
|
protected element: HTMLElement; // Current element.
|
||||||
|
|
||||||
constructor(element: ElementRef) {
|
constructor(element: ElementRef) {
|
||||||
this.element = element.nativeElement;
|
this.element = element.nativeElement;
|
||||||
|
|
||||||
|
// Calculate the unique ID.
|
||||||
|
this.uniqueId = 'core-loading-content-' + CoreUtils.instance.getUniqueId('CoreLoadingComponent');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component being initialized.
|
* Component being initialized.
|
||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
// Calculate the unique ID.
|
|
||||||
this.uniqueId = 'core-loading-content-' + CoreUtils.instance.getUniqueId('CoreLoadingComponent');
|
|
||||||
|
|
||||||
if (!this.message) {
|
if (!this.message) {
|
||||||
// Default loading message.
|
// Default loading message.
|
||||||
this.message = Translate.instance.instant('core.loading');
|
this.message = Translate.instance.instant('core.loading');
|
||||||
|
|
|
@ -45,8 +45,8 @@ export class CoreShowPasswordComponent implements OnInit, AfterViewInit {
|
||||||
@ContentChild(IonInput) ionInput?: IonInput;
|
@ContentChild(IonInput) ionInput?: IonInput;
|
||||||
|
|
||||||
shown!: boolean; // Whether the password is shown.
|
shown!: boolean; // Whether the password is shown.
|
||||||
label?: string; // Label for the button to show/hide.
|
label!: string; // Label for the button to show/hide.
|
||||||
iconName?: string; // Name of the icon of the button to show/hide.
|
iconName!: string; // Name of the icon of the button to show/hide.
|
||||||
selector = ''; // Selector to identify the input.
|
selector = ''; // Selector to identify the input.
|
||||||
|
|
||||||
protected input?: HTMLInputElement | null; // Input affected.
|
protected input?: HTMLInputElement | null; // Input affected.
|
||||||
|
|
|
@ -417,8 +417,8 @@ export class CoreLoginSitePage implements OnInit {
|
||||||
* @param event Received Event.
|
* @param event Received Event.
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
filterChanged(event: any): void {
|
filterChanged(event?: any): void {
|
||||||
const newValue = event.target.value?.trim().toLowerCase();
|
const newValue = event?.target.value?.trim().toLowerCase();
|
||||||
if (!newValue || !this.fixedSites) {
|
if (!newValue || !this.fixedSites) {
|
||||||
this.filteredSites = this.fixedSites;
|
this.filteredSites = this.fixedSites;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<h2>{{ 'core.scanqr' | translate }}</h2>
|
<h2>{{ 'core.scanqr' | translate }}</h2>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item *ngIf="showWeb" [href]="siteInfo.siteurl" core-link autoLogin="yes" title="{{ 'core.mainmenu.website' | translate }}">
|
<ion-item *ngIf="showWeb && siteInfo" [href]="siteInfo.siteurl" core-link autoLogin="yes" title="{{ 'core.mainmenu.website' | translate }}">
|
||||||
<ion-icon name="globe" slot="start" aria-hidden="true"></ion-icon>
|
<ion-icon name="globe" slot="start" aria-hidden="true"></ion-icon>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{ 'core.mainmenu.website' | translate }}</h2>
|
<h2>{{ 'core.mainmenu.website' | translate }}</h2>
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class CoreMainMenuMorePage implements OnInit, OnDestroy {
|
||||||
handlersLoaded = false;
|
handlersLoaded = false;
|
||||||
siteInfo?: CoreSiteInfo;
|
siteInfo?: CoreSiteInfo;
|
||||||
siteName?: string;
|
siteName?: string;
|
||||||
logoutLabel?: string;
|
logoutLabel = 'core.mainmenu.changesite';
|
||||||
showScanQR: boolean;
|
showScanQR: boolean;
|
||||||
showWeb?: boolean;
|
showWeb?: boolean;
|
||||||
showHelp?: boolean;
|
showHelp?: boolean;
|
||||||
|
|
Loading…
Reference in New Issue