MOBILE-3565 core: Fix errors when compiling in prod mode
parent
338c2aad68
commit
9fd6c38f2d
|
@ -2,12 +2,12 @@
|
||||||
<ng-container *ngIf="control && control.dirty && !control.valid">
|
<ng-container *ngIf="control && control.dirty && !control.valid">
|
||||||
<ng-container *ngFor="let error of errorKeys">
|
<ng-container *ngFor="let error of errorKeys">
|
||||||
<div *ngIf="control.hasError(error)" class="core-input-error">
|
<div *ngIf="control.hasError(error)" class="core-input-error">
|
||||||
<span *ngIf="errorMessages[error]">{{errorMessages[error]}}</span>
|
<span *ngIf="errorMessages && errorMessages[error]">{{errorMessages[error]}}</span>
|
||||||
<span *ngIf="!errorMessages[error] && error == 'max' && control.errors.max">
|
<span *ngIf="(!errorMessages || !errorMessages[error]) && error == 'max' && control.errors?.max">
|
||||||
{{ 'core.login.invalidvaluemax' | translate:{$a: control.errors.max.max} }}
|
{{ 'core.login.invalidvaluemax' | translate:{$a: control.errors!.max.max} }}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="!errorMessages[error] && error == 'min' && control.errors.min">
|
<span *ngIf="(!errorMessages || !errorMessages[error]) && error == 'min' && control.errors?.min">
|
||||||
{{ 'core.login.invalidvaluemin' | translate:{$a: control.errors.min.min} }}
|
{{ 'core.login.invalidvaluemin' | translate:{$a: control.errors!.min.min} }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
<ion-input type="text" name="nameField" placeholder="{{ 'core.user.' + nameField | translate }}"
|
<ion-input type="text" name="nameField" placeholder="{{ 'core.user.' + nameField | translate }}"
|
||||||
formControlName="{{nameField}}" autocorrect="off">
|
formControlName="{{nameField}}" autocorrect="off">
|
||||||
</ion-input>
|
</ion-input>
|
||||||
<core-input-errors [control]="signupForm.controls[nameField]" [errorMessages]="namefieldsErrors[nameField]">
|
<core-input-errors [control]="signupForm.controls[nameField]" [errorMessages]="namefieldsErrors![nameField]">
|
||||||
</core-input-errors>
|
</core-input-errors>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item class="ion-text-wrap">
|
<ion-item class="ion-text-wrap">
|
||||||
|
|
|
@ -337,7 +337,7 @@ export class CoreLoginEmailSignupPage implements OnInit {
|
||||||
/**
|
/**
|
||||||
* Show authentication instructions.
|
* Show authentication instructions.
|
||||||
*/
|
*/
|
||||||
protected showAuthInstructions(): void {
|
showAuthInstructions(): void {
|
||||||
CoreTextUtils.instance.viewText(Translate.instance.instant('core.login.instructions'), this.authInstructions!);
|
CoreTextUtils.instance.viewText(Translate.instance.instant('core.login.instructions'), this.authInstructions!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
import { CoreComponentsModule } from '@components/components.module';
|
import { CoreComponentsModule } from '@components/components.module';
|
||||||
import { CoreDirectivesModule } from '@directives/directives.module';
|
import { CoreDirectivesModule } from '@directives/directives.module';
|
||||||
|
import { CorePipesModule } from '@pipes/pipes.module';
|
||||||
|
|
||||||
import { CoreSettingsDeviceInfoPage } from './deviceinfo.page';
|
import { CoreSettingsDeviceInfoPage } from './deviceinfo.page';
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ const routes: Routes = [
|
||||||
TranslateModule.forChild(),
|
TranslateModule.forChild(),
|
||||||
CoreComponentsModule,
|
CoreComponentsModule,
|
||||||
CoreDirectivesModule,
|
CoreDirectivesModule,
|
||||||
|
CorePipesModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
CoreSettingsDeviceInfoPage,
|
CoreSettingsDeviceInfoPage,
|
||||||
|
|
Loading…
Reference in New Issue