diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/shared/video-description.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-description.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-description.component.ts b/client/src/app/videos/+video-edit/shared/video-description.component.ts index 34dbc21a6..eba345412 100644 --- a/client/src/app/videos/+video-edit/shared/video-description.component.ts +++ b/client/src/app/videos/+video-edit/shared/video-description.component.ts | |||
@@ -2,6 +2,7 @@ import { Component, forwardRef, Input, OnInit } from '@angular/core' | |||
2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import 'rxjs/add/operator/debounceTime' | 3 | import 'rxjs/add/operator/debounceTime' |
4 | import 'rxjs/add/operator/distinctUntilChanged' | 4 | import 'rxjs/add/operator/distinctUntilChanged' |
5 | import { isInMobileView } from '@app/shared/misc/utils' | ||
5 | import { Subject } from 'rxjs/Subject' | 6 | import { Subject } from 'rxjs/Subject' |
6 | import { MarkdownService } from '../../shared' | 7 | import { MarkdownService } from '../../shared' |
7 | import truncate from 'lodash-es/truncate' | 8 | import truncate from 'lodash-es/truncate' |
@@ -59,6 +60,10 @@ export class VideoDescriptionComponent implements ControlValueAccessor, OnInit { | |||
59 | this.descriptionChanged.next(this.description) | 60 | this.descriptionChanged.next(this.description) |
60 | } | 61 | } |
61 | 62 | ||
63 | arePreviewsDisplayed () { | ||
64 | return isInMobileView() === false | ||
65 | } | ||
66 | |||
62 | private updateDescriptionPreviews () { | 67 | private updateDescriptionPreviews () { |
63 | if (!this.description) return | 68 | if (!this.description) return |
64 | 69 | ||