diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/misc/loader.component.html | 3 | ||||
-rw-r--r-- | client/src/app/shared/misc/loader.component.ts | 11 | ||||
-rw-r--r-- | client/src/app/shared/shared.module.ts | 7 |
3 files changed, 19 insertions, 2 deletions
diff --git a/client/src/app/shared/misc/loader.component.html b/client/src/app/shared/misc/loader.component.html new file mode 100644 index 000000000..38d06950e --- /dev/null +++ b/client/src/app/shared/misc/loader.component.html | |||
@@ -0,0 +1,3 @@ | |||
1 | <div id="video-loading" *ngIf="loading"> | ||
2 | <div class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></div> | ||
3 | </div> | ||
diff --git a/client/src/app/shared/misc/loader.component.ts b/client/src/app/shared/misc/loader.component.ts new file mode 100644 index 000000000..f37d70c85 --- /dev/null +++ b/client/src/app/shared/misc/loader.component.ts | |||
@@ -0,0 +1,11 @@ | |||
1 | import { Component, Input } from '@angular/core' | ||
2 | |||
3 | @Component({ | ||
4 | selector: 'my-loader', | ||
5 | styleUrls: [ ], | ||
6 | templateUrl: './loader.component.html' | ||
7 | }) | ||
8 | |||
9 | export class LoaderComponent { | ||
10 | @Input() loading: boolean | ||
11 | } | ||
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' | |||
19 | import { UserService } from './users' | 19 | import { UserService } from './users' |
20 | import { VideoAbuseService } from './video-abuse' | 20 | import { VideoAbuseService } from './video-abuse' |
21 | import { VideoBlacklistService } from './video-blacklist' | 21 | import { VideoBlacklistService } from './video-blacklist' |
22 | import { LoaderComponent } from './misc/loader.component' | ||
22 | 23 | ||
23 | @NgModule({ | 24 | @NgModule({ |
24 | imports: [ | 25 | imports: [ |
@@ -40,7 +41,8 @@ import { VideoBlacklistService } from './video-blacklist' | |||
40 | declarations: [ | 41 | declarations: [ |
41 | BytesPipe, | 42 | BytesPipe, |
42 | KeysPipe, | 43 | KeysPipe, |
43 | SearchComponent | 44 | SearchComponent, |
45 | LoaderComponent | ||
44 | ], | 46 | ], |
45 | 47 | ||
46 | exports: [ | 48 | exports: [ |
@@ -59,7 +61,8 @@ import { VideoBlacklistService } from './video-blacklist' | |||
59 | BytesPipe, | 61 | BytesPipe, |
60 | KeysPipe, | 62 | KeysPipe, |
61 | 63 | ||
62 | SearchComponent | 64 | SearchComponent, |
65 | LoaderComponent | ||
63 | ], | 66 | ], |
64 | 67 | ||
65 | providers: [ | 68 | providers: [ |