]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-forms/timestamp-input.component.ts
Update playlist add component to accept multiple times the same video
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / timestamp-input.component.ts
index 8d67a96ac3ca68744a4f94e389967816a92d1f17..0ffd03d02886082da3e8519751a0278997d313a1 100644 (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()
   }
 }