diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add.component.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add.component.ts b/client/src/app/+videos/+video-edit/video-add.component.ts index d735c936c..8606b8222 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.ts +++ b/client/src/app/+videos/+video-edit/video-add.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, HostListener, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, HostListener, OnInit, ViewChild } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { AuthService, AuthUser, CanComponentDeactivate, ServerService } from '@app/core' | 3 | import { AuthService, AuthUser, CanComponentDeactivate, ServerService } from '@app/core' |
4 | import { ServerConfig } from '@shared/models' | 4 | import { HTMLServerConfig } from '@shared/models' |
5 | import { VideoEditType } from './shared/video-edit.type' | 5 | import { VideoEditType } from './shared/video-edit.type' |
6 | import { VideoGoLiveComponent } from './video-add-components/video-go-live.component' | 6 | import { VideoGoLiveComponent } from './video-add-components/video-go-live.component' |
7 | import { VideoImportTorrentComponent } from './video-add-components/video-import-torrent.component' | 7 | import { VideoImportTorrentComponent } from './video-add-components/video-import-torrent.component' |
@@ -26,7 +26,7 @@ export class VideoAddComponent implements OnInit, CanComponentDeactivate { | |||
26 | 26 | ||
27 | activeNav: string | 27 | activeNav: string |
28 | 28 | ||
29 | private serverConfig: ServerConfig | 29 | private serverConfig: HTMLServerConfig |
30 | 30 | ||
31 | constructor ( | 31 | constructor ( |
32 | private auth: AuthService, | 32 | private auth: AuthService, |
@@ -42,10 +42,7 @@ export class VideoAddComponent implements OnInit, CanComponentDeactivate { | |||
42 | ngOnInit () { | 42 | ngOnInit () { |
43 | this.user = this.auth.getUser() | 43 | this.user = this.auth.getUser() |
44 | 44 | ||
45 | this.serverConfig = this.serverService.getTmpConfig() | 45 | this.serverConfig = this.serverService.getHTMLConfig() |
46 | |||
47 | this.serverService.getConfig() | ||
48 | .subscribe(config => this.serverConfig = config) | ||
49 | 46 | ||
50 | this.user = this.auth.getUser() | 47 | this.user = this.auth.getUser() |
51 | 48 | ||