diff options
Diffstat (limited to 'client/src/app/+my-library/my-history')
3 files changed, 10 insertions, 5 deletions
diff --git a/client/src/app/+my-library/my-history/my-history.component.html b/client/src/app/+my-library/my-history/my-history.component.html index 76367c029..6791dab52 100644 --- a/client/src/app/+my-library/my-history/my-history.component.html +++ b/client/src/app/+my-library/my-history/my-history.component.html | |||
@@ -27,7 +27,7 @@ | |||
27 | [titlePage]="titlePage" | 27 | [titlePage]="titlePage" |
28 | [getVideosObservableFunction]="getVideosObservableFunction" | 28 | [getVideosObservableFunction]="getVideosObservableFunction" |
29 | [user]="user" | 29 | [user]="user" |
30 | i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet." | 30 | [noResultMessage]="getNoResultMessage()" |
31 | [enableSelection]="false" | 31 | [enableSelection]="false" |
32 | [disabled]="disabled" | 32 | [disabled]="disabled" |
33 | #videosSelection | 33 | #videosSelection |
diff --git a/client/src/app/+my-library/my-history/my-history.component.scss b/client/src/app/+my-library/my-history/my-history.component.scss index 3257b2215..21011a089 100644 --- a/client/src/app/+my-library/my-history/my-history.component.scss +++ b/client/src/app/+my-library/my-history/my-history.component.scss | |||
@@ -6,7 +6,6 @@ | |||
6 | justify-content: center; | 6 | justify-content: center; |
7 | margin-top: 50px; | 7 | margin-top: 50px; |
8 | font-weight: $font-semibold; | 8 | font-weight: $font-semibold; |
9 | font-size: 16px; | ||
10 | } | 9 | } |
11 | 10 | ||
12 | .top-buttons { | 11 | .top-buttons { |
@@ -29,11 +28,11 @@ | |||
29 | 28 | ||
30 | grid-column: 3; | 29 | grid-column: 3; |
31 | display: flex; | 30 | display: flex; |
31 | align-items: center; | ||
32 | 32 | ||
33 | label { | 33 | label { |
34 | margin: 0 0 0 5px; | 34 | margin: 0 0 0 5px; |
35 | color: var(--greyForegroundColor); | 35 | color: var(--greyForegroundColor); |
36 | font-size: 15px; | ||
37 | font-weight: $font-semibold; | 36 | font-weight: $font-semibold; |
38 | } | 37 | } |
39 | } | 38 | } |
@@ -44,8 +43,6 @@ | |||
44 | @include button-with-icon; | 43 | @include button-with-icon; |
45 | 44 | ||
46 | grid-column: 4; | 45 | grid-column: 4; |
47 | |||
48 | font-size: 15px; | ||
49 | } | 46 | } |
50 | } | 47 | } |
51 | 48 | ||
diff --git a/client/src/app/+my-library/my-history/my-history.component.ts b/client/src/app/+my-library/my-history/my-history.component.ts index 766869637..c4878c957 100644 --- a/client/src/app/+my-library/my-history/my-history.component.ts +++ b/client/src/app/+my-library/my-history/my-history.component.ts | |||
@@ -134,4 +134,12 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook { | |||
134 | error: err => this.notifier.error(err.message) | 134 | error: err => this.notifier.error(err.message) |
135 | }) | 135 | }) |
136 | } | 136 | } |
137 | |||
138 | getNoResultMessage () { | ||
139 | if (this.search) { | ||
140 | return $localize`No videos found for "${this.search}".` | ||
141 | } | ||
142 | |||
143 | return $localize`You don't have any video in your watch history yet.` | ||
144 | } | ||
137 | } | 145 | } |