diff --git a/client/src/app/videos/video-list/shared/loader.component.html b/client/src/app/shared/misc/loader.component.html similarity index 100% rename from client/src/app/videos/video-list/shared/loader.component.html rename to client/src/app/shared/misc/loader.component.html diff --git a/client/src/app/videos/video-list/shared/loader.component.ts b/client/src/app/shared/misc/loader.component.ts similarity index 100% rename from client/src/app/videos/video-list/shared/loader.component.ts rename to client/src/app/shared/misc/loader.component.ts diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 47f651590..456ce851e 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -19,6 +19,7 @@ import { SearchComponent, SearchService } from './search' import { UserService } from './users' import { VideoAbuseService } from './video-abuse' import { VideoBlacklistService } from './video-blacklist' +import { LoaderComponent } from './misc/loader.component' @NgModule({ imports: [ @@ -40,7 +41,8 @@ import { VideoBlacklistService } from './video-blacklist' declarations: [ BytesPipe, KeysPipe, - SearchComponent + SearchComponent, + LoaderComponent ], exports: [ @@ -59,7 +61,8 @@ import { VideoBlacklistService } from './video-blacklist' BytesPipe, KeysPipe, - SearchComponent + SearchComponent, + LoaderComponent ], providers: [ diff --git a/client/src/app/videos/+video-edit/video-edit.component.scss b/client/src/app/videos/+video-edit/shared/video-edit.component.scss similarity index 100% rename from client/src/app/videos/+video-edit/video-edit.component.scss rename to client/src/app/videos/+video-edit/shared/video-edit.component.scss diff --git a/client/src/app/videos/+video-edit/video-edit.module.ts b/client/src/app/videos/+video-edit/shared/video-edit.module.ts similarity index 88% rename from client/src/app/videos/+video-edit/video-edit.module.ts rename to client/src/app/videos/+video-edit/shared/video-edit.module.ts index 33f654960..c64cea920 100644 --- a/client/src/app/videos/+video-edit/video-edit.module.ts +++ b/client/src/app/videos/+video-edit/shared/video-edit.module.ts @@ -3,8 +3,8 @@ import { NgModule } from '@angular/core' import { TagInputModule } from 'ngx-chips' import { TabsModule } from 'ngx-bootstrap/tabs' -import { VideoService, MarkdownService, VideoDescriptionComponent } from '../shared' -import { SharedModule } from '../../shared' +import { VideoService, MarkdownService, VideoDescriptionComponent } from '../../shared' +import { SharedModule } from '../../../shared' @NgModule({ imports: [ 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 c8094f792..1704cf486 100644 --- a/client/src/app/videos/+video-edit/video-add.component.ts +++ b/client/src/app/videos/+video-edit/video-add.component.ts @@ -23,7 +23,7 @@ import { HttpEventType, HttpResponse } from '@angular/common/http' @Component({ selector: 'my-videos-add', - styleUrls: [ './video-edit.component.scss' ], + styleUrls: [ './shared/video-edit.component.scss' ], templateUrl: './video-add.component.html' }) diff --git a/client/src/app/videos/+video-edit/video-add.module.ts b/client/src/app/videos/+video-edit/video-add.module.ts index 3d937b008..f58d12dac 100644 --- a/client/src/app/videos/+video-edit/video-add.module.ts +++ b/client/src/app/videos/+video-edit/video-add.module.ts @@ -1,9 +1,8 @@ import { NgModule } from '@angular/core' - +import { SharedModule } from '../../shared' +import { VideoEditModule } from './shared/video-edit.module' import { VideoAddRoutingModule } from './video-add-routing.module' import { VideoAddComponent } from './video-add.component' -import { VideoEditModule } from './video-edit.module' -import { SharedModule } from '../../shared' @NgModule({ imports: [ diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts index be663575f..0e966cb50 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts @@ -21,7 +21,7 @@ import { VideoPrivacy } from '../../../../../shared/models/videos/video-privacy. @Component({ selector: 'my-videos-update', - styleUrls: [ './video-edit.component.scss' ], + styleUrls: [ './shared/video-edit.component.scss' ], templateUrl: './video-update.component.html' }) diff --git a/client/src/app/videos/+video-edit/video-update.module.ts b/client/src/app/videos/+video-edit/video-update.module.ts index f7bd77c75..3b45c72a5 100644 --- a/client/src/app/videos/+video-edit/video-update.module.ts +++ b/client/src/app/videos/+video-edit/video-update.module.ts @@ -1,9 +1,8 @@ import { NgModule } from '@angular/core' - +import { SharedModule } from '../../shared' +import { VideoEditModule } from './shared/video-edit.module' import { VideoUpdateRoutingModule } from './video-update-routing.module' import { VideoUpdateComponent } from './video-update.component' -import { VideoEditModule } from './video-edit.module' -import { SharedModule } from '../../shared' @NgModule({ imports: [ diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index fd3ce2b84..f528d73c3 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -130,14 +130,15 @@
-