1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add ability to schedule video publication

This commit is contained in:
Chocobozzz 2018-06-15 16:52:15 +02:00
parent 2baea0c77c
commit bbe0f0645c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
51 changed files with 751 additions and 246 deletions

View file

@ -1,10 +1,10 @@
import { debounceTime, distinctUntilChanged } from 'rxjs/operators'
import { Component, forwardRef, Input, OnInit } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
import { isInSmallView } from '@app/shared/misc/utils'
import { MarkdownService } from '@app/videos/shared'
import { Subject } from 'rxjs/Subject'
import truncate from 'lodash-es/truncate'
import { ScreenService } from '@app/shared/misc/screen.service'
@Component({
selector: 'my-markdown-textarea',
@ -35,7 +35,10 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
private contentChanged = new Subject<string>()
constructor (private markdownService: MarkdownService) {}
constructor (
private screenService: ScreenService,
private markdownService: MarkdownService
) {}
ngOnInit () {
this.contentChanged
@ -76,7 +79,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
}
arePreviewsDisplayed () {
return isInSmallView() === false
return this.screenService.isInSmallView() === false
}
private updatePreviews () {