diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-21 11:24:07 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-21 14:04:44 +0100 |
commit | 84c7cde6e81426a42e7aa29187b473bc89f1c8f6 (patch) | |
tree | 5c85056f29bc563a6ea29ced4736d4d5cd9851fd /client/src/app/videos/+video-edit | |
parent | 1e17071bacc8a78c9145ba602113b1b52dd8fe7b (diff) | |
download | PeerTube-84c7cde6e81426a42e7aa29187b473bc89f1c8f6.tar.gz PeerTube-84c7cde6e81426a42e7aa29187b473bc89f1c8f6.tar.zst PeerTube-84c7cde6e81426a42e7aa29187b473bc89f1c8f6.zip |
Update E2E tests
Diffstat (limited to 'client/src/app/videos/+video-edit')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.ts b/client/src/app/videos/+video-edit/shared/video-edit.component.ts index c7ebcec25..c80efd802 100644 --- a/client/src/app/videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, Input, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' |
2 | import { FormArray, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms' | 2 | import { FormArray, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms' |
3 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
4 | import { FormReactiveValidationMessages, VideoValidatorsService } from '@app/shared' | 4 | import { FormReactiveValidationMessages, VideoValidatorsService } from '@app/shared' |
@@ -62,7 +62,8 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
62 | private router: Router, | 62 | private router: Router, |
63 | private notifier: Notifier, | 63 | private notifier: Notifier, |
64 | private serverService: ServerService, | 64 | private serverService: ServerService, |
65 | private i18nPrimengCalendarService: I18nPrimengCalendarService | 65 | private i18nPrimengCalendarService: I18nPrimengCalendarService, |
66 | private ngZone: NgZone | ||
66 | ) { | 67 | ) { |
67 | this.tagValidators = this.videoValidatorsService.VIDEO_TAGS.VALIDATORS | 68 | this.tagValidators = this.videoValidatorsService.VIDEO_TAGS.VALIDATORS |
68 | this.tagValidatorsMessages = this.videoValidatorsService.VIDEO_TAGS.MESSAGES | 69 | this.tagValidatorsMessages = this.videoValidatorsService.VIDEO_TAGS.MESSAGES |
@@ -132,9 +133,11 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
132 | this.videoLicences = this.serverService.getVideoLicences() | 133 | this.videoLicences = this.serverService.getVideoLicences() |
133 | this.videoLanguages = this.serverService.getVideoLanguages() | 134 | this.videoLanguages = this.serverService.getVideoLanguages() |
134 | 135 | ||
135 | this.schedulerInterval = setInterval(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute | ||
136 | |||
137 | this.initialVideoCaptions = this.videoCaptions.map(c => c.language.id) | 136 | this.initialVideoCaptions = this.videoCaptions.map(c => c.language.id) |
137 | |||
138 | this.ngZone.runOutsideAngular(() => { | ||
139 | this.schedulerInterval = setInterval(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute | ||
140 | }) | ||
138 | } | 141 | } |
139 | 142 | ||
140 | ngOnDestroy () { | 143 | ngOnDestroy () { |