aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/helpers/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/helpers/utils.ts')
-rw-r--r--client/src/app/helpers/utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/helpers/utils.ts b/client/src/app/helpers/utils.ts
index aa37fdd46..b925e6d98 100644
--- a/client/src/app/helpers/utils.ts
+++ b/client/src/app/helpers/utils.ts
@@ -1,6 +1,7 @@
1import { DatePipe } from '@angular/common' 1import { DatePipe } from '@angular/common'
2import { environment } from '../../environments/environment' 2import { environment } from '../../environments/environment'
3import { AuthService } from '../core/auth' 3import { AuthService } from '../core/auth'
4import { SelectChannelItem } from '@app/shared/shared-forms/select-channel.component'
4 5
5// Thanks: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript 6// Thanks: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
6function getParameterByName (name: string, url: string) { 7function getParameterByName (name: string, url: string) {
@@ -18,7 +19,7 @@ function getParameterByName (name: string, url: string) {
18 19
19function populateAsyncUserVideoChannels ( 20function populateAsyncUserVideoChannels (
20 authService: AuthService, 21 authService: AuthService,
21 channel: { id: number, label: string, support?: string, avatarPath?: string, recent?: boolean }[] 22 channel: SelectChannelItem[]
22) { 23) {
23 return new Promise(res => { 24 return new Promise(res => {
24 authService.userInformationLoaded 25 authService.userInformationLoaded