X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-forms%2Ftimestamp-input.component.ts;h=0ffd03d02886082da3e8519751a0278997d313a1;hb=e79df4eefbeba3e7ab74e17cae1369c80c94b848;hp=8d67a96ac3ca68744a4f94e389967816a92d1f17;hpb=cbb513e737bfca3ad3dbd43ad9614968e6e207cf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-forms/timestamp-input.component.ts b/client/src/app/shared/shared-forms/timestamp-input.component.ts index 8d67a96ac..0ffd03d02 100644 --- a/client/src/app/shared/shared-forms/timestamp-input.component.ts +++ b/client/src/app/shared/shared-forms/timestamp-input.component.ts @@ -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() } }