Update playlist add component to accept multiple times the same video

This commit is contained in:
Chocobozzz 2020-08-18 15:51:51 +02:00 committed by Chocobozzz
parent cbb513e737
commit e79df4eefb
5 changed files with 292 additions and 134 deletions

View file

@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core'
import { ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, OnInit, Output } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
import { secondsToTime, timeToInt } from '../../../assets/player/utils'
@ -19,6 +19,8 @@ export class TimestampInputComponent implements ControlValueAccessor, OnInit {
@Input() timestamp: number
@Input() disabled = false
@Output() inputBlur = new EventEmitter()
timestampString: string
constructor (private changeDetector: ChangeDetectorRef) {}
@ -57,5 +59,7 @@ export class TimestampInputComponent implements ControlValueAccessor, OnInit {
this.propagateChange(this.timestamp)
}
this.inputBlur.emit()
}
}