aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-28 15:40:53 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-28 17:13:51 +0100
commit80958c78fdc733c02077a9d2200be0c3f5ee623e (patch)
treea5f024c8127f98e9f08c3db369a9d219cf8c30c7 /client/src/app/shared
parent83c663ef0e94242762ed5f6d2875fc55f4a5603e (diff)
downloadPeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.gz
PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.zst
PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.zip
Add loader when expanding long video description
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/misc/loader.component.html3
-rw-r--r--client/src/app/shared/misc/loader.component.ts11
-rw-r--r--client/src/app/shared/shared.module.ts7
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 @@
1import { Component, Input } from '@angular/core'
2
3@Component({
4 selector: 'my-loader',
5 styleUrls: [ ],
6 templateUrl: './loader.component.html'
7})
8
9export 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'
19import { UserService } from './users' 19import { UserService } from './users'
20import { VideoAbuseService } from './video-abuse' 20import { VideoAbuseService } from './video-abuse'
21import { VideoBlacklistService } from './video-blacklist' 21import { VideoBlacklistService } from './video-blacklist'
22import { 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: [