From e822fdaeee90cb7c70d5678f19249198cd7aae8c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Jun 2016 22:34:02 +0200 Subject: Use ng2-file-upload instead of jquery and add tags support to the video upload form --- client/src/app/shared/search/search-field.type.ts | 2 +- client/src/app/shared/search/search.component.ts | 3 ++- client/src/app/shared/users/auth.service.ts | 6 +++++- 3 files changed, 8 insertions(+), 3 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 846236290..5228ee68a 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" | "podUrl" | "magnetUri"; +export type SearchField = "name" | "author" | "podUrl" | "magnetUri" | "tags"; diff --git a/client/src/app/shared/search/search.component.ts b/client/src/app/shared/search/search.component.ts index 31f8b1535..c14c2d99c 100644 --- a/client/src/app/shared/search/search.component.ts +++ b/client/src/app/shared/search/search.component.ts @@ -18,7 +18,8 @@ export class SearchComponent { name: 'Name', author: 'Author', podUrl: 'Pod Url', - magnetUri: 'Magnet Uri' + magnetUri: 'Magnet Uri', + tags: 'Tags' }; searchCriterias: Search = { field: 'name', diff --git a/client/src/app/shared/users/auth.service.ts b/client/src/app/shared/users/auth.service.ts index 720037563..1c822c1e1 100644 --- a/client/src/app/shared/users/auth.service.ts +++ b/client/src/app/shared/users/auth.service.ts @@ -43,7 +43,11 @@ export class AuthService { } getRequestHeader() { - return new Headers({ 'Authorization': `${this.getTokenType()} ${this.getToken()}` }); + return new Headers({ 'Authorization': this.getRequestHeaderValue() }); + } + + getRequestHeaderValue() { + return `${this.getTokenType()} ${this.getToken()}`; } getToken() { -- cgit v1.2.3