From 1e1265b36c09df1465aa2b4866815c957b6a532e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Nov 2017 09:31:41 +0100 Subject: Make the client compile too --- client/src/app/shared/search/search-field.type.ts | 2 +- client/src/app/shared/search/search.component.ts | 4 ++-- client/src/app/shared/users/user.model.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared') 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' export class SearchComponent implements OnInit { fieldChoices = { name: 'Name', - author: 'Author', - host: 'Pod Host', + account: 'Account', + host: 'Host', tags: 'Tags' } 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 = { videoQuota?: number, displayNSFW?: boolean, createdAt?: Date, - author?: { + account?: { id: number uuid: string }, @@ -27,7 +27,7 @@ export class User implements UserServerModel { role: UserRole displayNSFW: boolean videoQuota: number - author: { + account: { id: number uuid: string } @@ -39,7 +39,7 @@ export class User implements UserServerModel { this.username = hash.username this.email = hash.email this.role = hash.role - this.author = hash.author + this.account = hash.account if (hash.videoChannels !== undefined) { this.videoChannels = hash.videoChannels -- cgit v1.2.3