diff --git a/role-verification/role-verification.component.ts b/role-verification/role-verification.component.ts index 7351e465..9e3cf379 100644 --- a/role-verification/role-verification.component.ts +++ b/role-verification/role-verification.component.ts @@ -176,9 +176,9 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.loading = false; this.managerModal.cancel(); this.error = null; - this.subs.push(this.userManagementService.updateUserInfo(() => { + this.userManagementService.updateUserInfo(() => { this.router.navigate(['/admin/' + this.verification.entity]); - })); + }); }, error => { this.loading = false; this.error = 'The verification code is invalid'; @@ -190,9 +190,9 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.subs.push(this.userRegistryService.verify(this.verification.id, this.code.value, "member").subscribe(() => { this.loading = false; this.error = null; - this.subs.push(this.userManagementService.updateUserInfo(() => { + this.userManagementService.updateUserInfo(() => { this.isMember = true; - })); + }); }, error => { this.loading = false; this.error = 'The verification code is invalid'; diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 81de1d4b..7a6fee74 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -15,28 +15,32 @@ export interface Option { @Component({ selector: '[dashboard-input]', template: ` -
{{label + (required ? ' *' : '')}}
+
{{label + (required ? ' *' : '')}}
{{hint}}
-
- +
+ + + + + + - - -
+
diff --git a/sharedComponents/input/input.module.ts b/sharedComponents/input/input.module.ts index 2a699033..e50c8e0d 100644 --- a/sharedComponents/input/input.module.ts +++ b/sharedComponents/input/input.module.ts @@ -6,6 +6,9 @@ import {MatInputModule} from "@angular/material/input"; import {MatSelectModule} from "@angular/material/select"; import {MatCheckboxModule} from '@angular/material/checkbox'; import {IconsModule} from "../../utils/icons/icons.module"; +import {IconsService} from "../../utils/icons/icons.service"; +import {lock} from "../../utils/icons/icons"; + @NgModule({ imports: [ SharedModule, @@ -23,4 +26,7 @@ import {IconsModule} from "../../utils/icons/icons.module"; ] }) export class InputModule { + constructor(private iconsService: IconsService) { + this.iconsService.registerIcons([lock]); + } }