diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-08 15:56:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 09:26:38 +0100 |
commit | a3342ce250936c30dc6df7563f4e984c172f61c1 (patch) | |
tree | a4b7e8c81b09563b0e3e99638d450427c1e517d2 /client/src/app/+admin/users/user-edit/user-update.component.ts | |
parent | 328c78bc4a570a9aceaaa1a2124bacd4a0e8d295 (diff) | |
download | PeerTube-a3342ce250936c30dc6df7563f4e984c172f61c1.tar.gz PeerTube-a3342ce250936c30dc6df7563f4e984c172f61c1.tar.zst PeerTube-a3342ce250936c30dc6df7563f4e984c172f61c1.zip |
remove isAdministration
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-update.component.ts')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-update.component.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-update.component.ts b/client/src/app/+admin/users/user-edit/user-update.component.ts index cb74897d0..4e4002a73 100644 --- a/client/src/app/+admin/users/user-edit/user-update.component.ts +++ b/client/src/app/+admin/users/user-edit/user-update.component.ts | |||
@@ -21,10 +21,8 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
21 | userId: number | 21 | userId: number |
22 | userEmail: string | 22 | userEmail: string |
23 | username: string | 23 | username: string |
24 | isAdministration = false | ||
25 | 24 | ||
26 | private paramsSub: Subscription | 25 | private paramsSub: Subscription |
27 | private isAdministrationSub: Subscription | ||
28 | 26 | ||
29 | constructor ( | 27 | constructor ( |
30 | protected formValidatorService: FormValidatorService, | 28 | protected formValidatorService: FormValidatorService, |
@@ -59,15 +57,10 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy { | |||
59 | err => this.error = err.message | 57 | err => this.error = err.message |
60 | ) | 58 | ) |
61 | }) | 59 | }) |
62 | |||
63 | this.isAdministrationSub = this.route.data.subscribe(data => { | ||
64 | if (data.isAdministration) this.isAdministration = data.isAdministration | ||
65 | }) | ||
66 | } | 60 | } |
67 | 61 | ||
68 | ngOnDestroy () { | 62 | ngOnDestroy () { |
69 | this.paramsSub.unsubscribe() | 63 | this.paramsSub.unsubscribe() |
70 | this.isAdministrationSub.unsubscribe() | ||
71 | } | 64 | } |
72 | 65 | ||
73 | formValidated () { | 66 | formValidated () { |