diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:49:31 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:49:31 +0200 |
commit | ec8d8440a893ba64075da2e57ea04c7976e0b303 (patch) | |
tree | a8fed5e1e6e06317533ebf021c1244c057e670c2 /client/src/app/admin/users | |
parent | ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14 (diff) | |
download | PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.gz PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.zst PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.zip |
Client: use templateUrl/styleUrls instead of require
Diffstat (limited to 'client/src/app/admin/users')
-rw-r--r-- | client/src/app/admin/users/user-add/user-add.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/admin/users/user-list/user-list.component.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/admin/users/user-add/user-add.component.ts b/client/src/app/admin/users/user-add/user-add.component.ts index b79437795..ab96fb01d 100644 --- a/client/src/app/admin/users/user-add/user-add.component.ts +++ b/client/src/app/admin/users/user-add/user-add.component.ts | |||
@@ -7,7 +7,7 @@ import { FormReactive, USER_USERNAME, USER_PASSWORD } from '../../../shared'; | |||
7 | 7 | ||
8 | @Component({ | 8 | @Component({ |
9 | selector: 'my-user-add', | 9 | selector: 'my-user-add', |
10 | template: require('./user-add.component.html') | 10 | templateUrl: './user-add.component.html' |
11 | }) | 11 | }) |
12 | export class UserAddComponent extends FormReactive implements OnInit { | 12 | export class UserAddComponent extends FormReactive implements OnInit { |
13 | error: string = null; | 13 | error: string = null; |
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 d3827eb28..03f4e5c0a 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 | |||
@@ -5,8 +5,8 @@ import { UserService } from '../shared'; | |||
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | selector: 'my-user-list', | 7 | selector: 'my-user-list', |
8 | template: require('./user-list.component.html'), | 8 | templateUrl: './user-list.component.html', |
9 | styles: [ require('./user-list.component.scss') ] | 9 | styleUrls: [ './user-list.component.scss' ] |
10 | }) | 10 | }) |
11 | export class UserListComponent implements OnInit { | 11 | export class UserListComponent implements OnInit { |
12 | totalUsers: number; | 12 | totalUsers: number; |