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:
parent
2baea0c77c
commit
bbe0f0645c
51 changed files with 751 additions and 246 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue