diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-14 09:31:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 1e1265b36c09df1465aa2b4866815c957b6a532e (patch) | |
tree | 0ac1b7398c1c941fb653fd27fe037fadae24871d /client/src/app/shared | |
parent | 8e6964874990d5ee9d3703be71c6ab4617b9ce20 (diff) | |
download | PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.gz PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.zst PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.zip |
Make the client compile too
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/search/search-field.type.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/search/search.component.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/shared/search/search-field.type.ts b/client/src/app/shared/search/search-field.type.ts index ff0bb8de1..7323d6cc3 100644 --- a/client/src/app/shared/search/search-field.type.ts +++ b/client/src/app/shared/search/search-field.type.ts | |||
@@ -1 +1 @@ | |||
export type SearchField = 'name' | 'author' | 'host' | 'tags' | export type SearchField = 'name' | 'account' | 'host' | 'tags' | ||
diff --git a/client/src/app/shared/search/search.component.ts b/client/src/app/shared/search/search.component.ts index 6e2827fe3..6ef19c97a 100644 --- a/client/src/app/shared/search/search.component.ts +++ b/client/src/app/shared/search/search.component.ts | |||
@@ -14,8 +14,8 @@ import { SearchService } from './search.service' | |||
14 | export class SearchComponent implements OnInit { | 14 | export class SearchComponent implements OnInit { |
15 | fieldChoices = { | 15 | fieldChoices = { |
16 | name: 'Name', | 16 | name: 'Name', |
17 | author: 'Author', | 17 | account: 'Account', |
18 | host: 'Pod Host', | 18 | host: 'Host', |
19 | tags: 'Tags' | 19 | tags: 'Tags' |
20 | } | 20 | } |
21 | searchCriteria: Search = { | 21 | searchCriteria: Search = { |
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index d738899ab..b075ab717 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts | |||
@@ -14,7 +14,7 @@ export type UserConstructorHash = { | |||
14 | videoQuota?: number, | 14 | videoQuota?: number, |
15 | displayNSFW?: boolean, | 15 | displayNSFW?: boolean, |
16 | createdAt?: Date, | 16 | createdAt?: Date, |
17 | author?: { | 17 | account?: { |
18 | id: number | 18 | id: number |
19 | uuid: string | 19 | uuid: string |
20 | }, | 20 | }, |
@@ -27,7 +27,7 @@ export class User implements UserServerModel { | |||
27 | role: UserRole | 27 | role: UserRole |
28 | displayNSFW: boolean | 28 | displayNSFW: boolean |
29 | videoQuota: number | 29 | videoQuota: number |
30 | author: { | 30 | account: { |
31 | id: number | 31 | id: number |
32 | uuid: string | 32 | uuid: string |
33 | } | 33 | } |
@@ -39,7 +39,7 @@ export class User implements UserServerModel { | |||
39 | this.username = hash.username | 39 | this.username = hash.username |
40 | this.email = hash.email | 40 | this.email = hash.email |
41 | this.role = hash.role | 41 | this.role = hash.role |
42 | this.author = hash.author | 42 | this.account = hash.account |
43 | 43 | ||
44 | if (hash.videoChannels !== undefined) { | 44 | if (hash.videoChannels !== undefined) { |
45 | this.videoChannels = hash.videoChannels | 45 | this.videoChannels = hash.videoChannels |