From 67b1d3fed765278bdc876cce393ef56d56942df0 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 8 Dec 2018 15:37:36 +0100 Subject: cleanup and remove paramSubs --- client/src/app/+admin/users/user-edit/user-edit.component.html | 10 ++++++---- .../app/+admin/users/user-edit/user-password.component.html | 4 ++-- .../src/app/+admin/users/user-edit/user-password.component.ts | 5 +---- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'client') diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index 6944ec435..3ce246771 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -82,10 +82,12 @@ +
-

Send a link to reset the password by mail to the user.

- +

Send a link to reset the password by mail to the user.

+ -

Manually set the user password

- +

Manually set the user password

+ +
\ No newline at end of file diff --git a/client/src/app/+admin/users/user-edit/user-password.component.html b/client/src/app/+admin/users/user-edit/user-password.component.html index 267422bdd..822e4688e 100644 --- a/client/src/app/+admin/users/user-edit/user-password.component.html +++ b/client/src/app/+admin/users/user-edit/user-password.component.html @@ -1,4 +1,4 @@ -
+
@@ -12,7 +12,7 @@ formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" >
-
diff --git a/client/src/app/+admin/users/user-edit/user-password.component.ts b/client/src/app/+admin/users/user-edit/user-password.component.ts index 99c4c8a59..30cd21ccd 100644 --- a/client/src/app/+admin/users/user-edit/user-password.component.ts +++ b/client/src/app/+admin/users/user-edit/user-password.component.ts @@ -1,6 +1,5 @@ import { Component, OnDestroy, OnInit, Input } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' -import { Subscription } from 'rxjs' import * as generator from 'generate-password-browser' import { NotificationsService } from 'angular2-notifications' import { UserService } from '@app/shared/users/user.service' @@ -24,8 +23,6 @@ export class UserPasswordComponent extends FormReactive implements OnInit, OnDes @Input() userId: number - private paramsSub: Subscription - constructor ( protected formValidatorService: FormValidatorService, protected serverService: ServerService, @@ -47,7 +44,7 @@ export class UserPasswordComponent extends FormReactive implements OnInit, OnDes } ngOnDestroy () { - this.paramsSub.unsubscribe() + // } formValidated () { -- cgit v1.2.3