aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-18 15:51:51 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-19 11:30:21 +0200
commite79df4eefbeba3e7ab74e17cae1369c80c94b848 (patch)
tree917e22bf85195394e0829ebd962ac5f861009bdf /client/src/app/shared/shared-forms
parentcbb513e737bfca3ad3dbd43ad9614968e6e207cf (diff)
downloadPeerTube-e79df4eefbeba3e7ab74e17cae1369c80c94b848.tar.gz
PeerTube-e79df4eefbeba3e7ab74e17cae1369c80c94b848.tar.zst
PeerTube-e79df4eefbeba3e7ab74e17cae1369c80c94b848.zip
Update playlist add component to accept multiple times the same video
Diffstat (limited to 'client/src/app/shared/shared-forms')
-rw-r--r--client/src/app/shared/shared-forms/timestamp-input.component.ts6
1 files changed, 5 insertions, 1 deletions
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 @@
1import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core' 1import { ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, OnInit, Output } from '@angular/core'
2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' 2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
3import { secondsToTime, timeToInt } from '../../../assets/player/utils' 3import { secondsToTime, timeToInt } from '../../../assets/player/utils'
4 4
@@ -19,6 +19,8 @@ export class TimestampInputComponent implements ControlValueAccessor, OnInit {
19 @Input() timestamp: number 19 @Input() timestamp: number
20 @Input() disabled = false 20 @Input() disabled = false
21 21
22 @Output() inputBlur = new EventEmitter()
23
22 timestampString: string 24 timestampString: string
23 25
24 constructor (private changeDetector: ChangeDetectorRef) {} 26 constructor (private changeDetector: ChangeDetectorRef) {}
@@ -57,5 +59,7 @@ export class TimestampInputComponent implements ControlValueAccessor, OnInit {
57 59
58 this.propagateChange(this.timestamp) 60 this.propagateChange(this.timestamp)
59 } 61 }
62
63 this.inputBlur.emit()
60 } 64 }
61} 65}