diff --git a/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.scss b/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.scss index 16aa80b23..86d3bd7ae 100644 --- a/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.scss +++ b/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.scss @@ -5,3 +5,12 @@ .change-password-form { width: 100%; } + +ion-input { + border: none; + background: transparent; + + ::ng-deep .native-input { + box-shadow: none; + } +} diff --git a/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.ts b/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.ts index 27f74e7b2..962740cbc 100644 --- a/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.ts +++ b/interfaces/IBF-dashboard/src/app/components/change-password-popover/change-password-popover.component.ts @@ -1,4 +1,5 @@ import { Component, ViewChild } from '@angular/core'; +import { ChangeDetectionStrategy } from '@angular/core'; import { NgForm } from '@angular/forms'; import { PopoverController } from '@ionic/angular'; import { AuthService } from 'src/app/auth/auth.service'; @@ -7,6 +8,7 @@ import { AuthService } from 'src/app/auth/auth.service'; selector: 'app-change-password-popover', templateUrl: './change-password-popover.component.html', styleUrls: ['./change-password-popover.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, }) export class ChangePasswordPopoverComponent { @ViewChild('changePasswordForm') @@ -34,9 +36,9 @@ export class ChangePasswordPopoverComponent { return; } - this.authService.changePassword(this.model.newPassword).add(() => { + this.authService.changePassword(this.model.newPassword).add(async () => { this.changePasswordForm.resetForm(); - this.popoverController.dismiss(); + await this.popoverController.dismiss(); }); } @@ -44,7 +46,7 @@ export class ChangePasswordPopoverComponent { this.showDifferentPasswordMessage = false; } - public closePopover(): void { - this.popoverController.dismiss(); + public async closePopover(): Promise { + await this.popoverController.dismiss(); } } diff --git a/interfaces/IBF-dashboard/src/app/components/login-form/login-form.component.html b/interfaces/IBF-dashboard/src/app/components/login-form/login-form.component.html index 13bfe4a20..db3de4229 100644 --- a/interfaces/IBF-dashboard/src/app/components/login-form/login-form.component.html +++ b/interfaces/IBF-dashboard/src/app/components/login-form/login-form.component.html @@ -67,7 +67,12 @@ Log In -
+