diff options
Diffstat (limited to 'client/src/app/core/plugins/plugin.service.ts')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 4e44a1865..b755fda2c 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -2,6 +2,7 @@ import { Observable, of, ReplaySubject } from 'rxjs' | |||
2 | import { catchError, first, map, shareReplay } from 'rxjs/operators' | 2 | import { catchError, first, map, shareReplay } from 'rxjs/operators' |
3 | import { HttpClient } from '@angular/common/http' | 3 | import { HttpClient } from '@angular/common/http' |
4 | import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core' | 4 | import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core' |
5 | import { VideoEditType } from '@app/+videos/+video-edit/shared/video-edit.type' | ||
5 | import { AuthService } from '@app/core/auth' | 6 | import { AuthService } from '@app/core/auth' |
6 | import { Notifier } from '@app/core/notification' | 7 | import { Notifier } from '@app/core/notification' |
7 | import { MarkdownService } from '@app/core/renderer' | 8 | import { MarkdownService } from '@app/core/renderer' |
@@ -192,7 +193,7 @@ export class PluginService implements ClientHook { | |||
192 | : PluginType.THEME | 193 | : PluginType.THEME |
193 | } | 194 | } |
194 | 195 | ||
195 | getRegisteredVideoFormFields (type: 'import-url' | 'import-torrent' | 'upload' | 'update') { | 196 | getRegisteredVideoFormFields (type: VideoEditType) { |
196 | return this.formFields.video.filter(f => f.videoFormOptions.type === type) | 197 | return this.formFields.video.filter(f => f.videoFormOptions.type === type) |
197 | } | 198 | } |
198 | 199 | ||