aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-15 09:24:56 +0100
committerChocobozzz <me@florianbigard.com>2018-11-15 09:25:32 +0100
commit2fbe7f1933f4bd5de96e6428234e56965616120e (patch)
tree7dfd9473d5984a35e35a8395d5da26d3a6c8858d /client/src/app/+admin
parent79c2480f46ba5ffad6131ca599653d8b224b1c32 (diff)
downloadPeerTube-2fbe7f1933f4bd5de96e6428234e56965616120e.tar.gz
PeerTube-2fbe7f1933f4bd5de96e6428234e56965616120e.tar.zst
PeerTube-2fbe7f1933f4bd5de96e6428234e56965616120e.zip
Fix new Angular 7 issues
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/users/user-edit/user-edit.ts2
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.html2
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-edit.ts b/client/src/app/+admin/users/user-edit/user-edit.ts
index 99ce5804b..0b3511e8e 100644
--- a/client/src/app/+admin/users/user-edit/user-edit.ts
+++ b/client/src/app/+admin/users/user-edit/user-edit.ts
@@ -4,10 +4,10 @@ import { USER_ROLE_LABELS, VideoResolution } from '../../../../../../shared'
4import { ConfigService } from '@app/+admin/config/shared/config.service' 4import { ConfigService } from '@app/+admin/config/shared/config.service'
5 5
6export abstract class UserEdit extends FormReactive { 6export abstract class UserEdit extends FormReactive {
7
8 videoQuotaOptions: { value: string, label: string }[] = [] 7 videoQuotaOptions: { value: string, label: string }[] = []
9 videoQuotaDailyOptions: { value: string, label: string }[] = [] 8 videoQuotaDailyOptions: { value: string, label: string }[] = []
10 roles = Object.keys(USER_ROLE_LABELS).map(key => ({ value: key.toString(), label: USER_ROLE_LABELS[key] })) 9 roles = Object.keys(USER_ROLE_LABELS).map(key => ({ value: key.toString(), label: USER_ROLE_LABELS[key] }))
10 username: string
11 11
12 protected abstract serverService: ServerService 12 protected abstract serverService: ServerService
13 protected abstract configService: ConfigService 13 protected abstract configService: ConfigService
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html
index eb8d30e17..5684004a5 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.html
+++ b/client/src/app/+admin/users/user-list/user-list.component.html
@@ -86,4 +86,4 @@
86 </ng-template> 86 </ng-template>
87</p-table> 87</p-table>
88 88
89<my-user-ban-modal #userBanModal (userBanned)="onUsersBanned()"></my-user-ban-modal> 89<my-user-ban-modal #userBanModal (userBanned)="onUserChanged()"></my-user-ban-modal>
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index 3859af9ff..31e783622 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -66,7 +66,7 @@ export class UserListComponent extends RestTable implements OnInit {
66 this.userBanModal.openModal(users) 66 this.userBanModal.openModal(users)
67 } 67 }
68 68
69 onUsersBanned () { 69 onUserChanged () {
70 this.loadData() 70 this.loadData()
71 } 71 }
72 72