diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 15:40:53 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 17:13:51 +0100 |
commit | 80958c78fdc733c02077a9d2200be0c3f5ee623e (patch) | |
tree | a5f024c8127f98e9f08c3db369a9d219cf8c30c7 /client/src/app/shared/misc | |
parent | 83c663ef0e94242762ed5f6d2875fc55f4a5603e (diff) | |
download | PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.gz PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.zst PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.zip |
Add loader when expanding long video description
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r-- | client/src/app/shared/misc/loader.component.html | 3 | ||||
-rw-r--r-- | client/src/app/shared/misc/loader.component.ts | 11 |
2 files changed, 14 insertions, 0 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 | } | ||