diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/timestamp-input.component.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/timestamp-input.component.ts | 6 |
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 @@ | |||
1 | import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core' | 1 | import { ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, OnInit, Output } from '@angular/core' |
2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import { secondsToTime, timeToInt } from '../../../assets/player/utils' | 3 | import { 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 | } |