diff options
Diffstat (limited to 'client/angular/videos/components')
-rw-r--r-- | client/angular/videos/components/list/video-sort.component.ts | 12 | ||||
-rw-r--r-- | client/angular/videos/components/list/videos-list.component.ts | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/client/angular/videos/components/list/video-sort.component.ts b/client/angular/videos/components/list/video-sort.component.ts index e63a70e9e..0373cea38 100644 --- a/client/angular/videos/components/list/video-sort.component.ts +++ b/client/angular/videos/components/list/video-sort.component.ts | |||
@@ -15,12 +15,12 @@ export class VideoSortComponent { | |||
15 | 15 | ||
16 | sortChoices = { | 16 | sortChoices = { |
17 | 'name': 'Name - Asc', | 17 | 'name': 'Name - Asc', |
18 | '-name': "Name - Desc", | 18 | '-name': 'Name - Desc', |
19 | 'duration': "Duration - Asc", | 19 | 'duration': 'Duration - Asc', |
20 | '-duration': "Duration - Desc", | 20 | '-duration': 'Duration - Desc', |
21 | 'createdDate': "Created Date - Asc", | 21 | 'createdDate': 'Created Date - Asc', |
22 | '-createdDate': "Created Date - Desc" | 22 | '-createdDate': 'Created Date - Desc' |
23 | } | 23 | }; |
24 | 24 | ||
25 | get choiceKeys() { | 25 | get choiceKeys() { |
26 | return Object.keys(this.sortChoices); | 26 | return Object.keys(this.sortChoices); |
diff --git a/client/angular/videos/components/list/videos-list.component.ts b/client/angular/videos/components/list/videos-list.component.ts index 98fe7b153..db64a856e 100644 --- a/client/angular/videos/components/list/videos-list.component.ts +++ b/client/angular/videos/components/list/videos-list.component.ts | |||
@@ -27,7 +27,7 @@ export class VideosListComponent implements OnInit { | |||
27 | currentPage: 1, | 27 | currentPage: 1, |
28 | itemsPerPage: 9, | 28 | itemsPerPage: 9, |
29 | total: 0 | 29 | total: 0 |
30 | } | 30 | }; |
31 | sort: SortField; | 31 | sort: SortField; |
32 | 32 | ||
33 | private search: Search; | 33 | private search: Search; |
@@ -41,7 +41,7 @@ export class VideosListComponent implements OnInit { | |||
41 | this.search = { | 41 | this.search = { |
42 | value: this._routeParams.get('search'), | 42 | value: this._routeParams.get('search'), |
43 | field: <SearchField>this._routeParams.get('field') | 43 | field: <SearchField>this._routeParams.get('field') |
44 | } | 44 | }; |
45 | 45 | ||
46 | this.sort = <SortField>this._routeParams.get('sort') || '-createdDate'; | 46 | this.sort = <SortField>this._routeParams.get('sort') || '-createdDate'; |
47 | } | 47 | } |