aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-29 16:16:12 +0200
committerChocobozzz <me@florianbigard.com>2021-06-29 16:16:12 +0200
commit0ca454e3bdf89390d1a48760ab555ddd8725c82d (patch)
treeec648012f0deb674704732894bd895b336c91b0c /client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts
parent76b8d72e324d3a148beec38ed7b36ccfd5eb4009 (diff)
downloadPeerTube-0ca454e3bdf89390d1a48760ab555ddd8725c82d.tar.gz
PeerTube-0ca454e3bdf89390d1a48760ab555ddd8725c82d.tar.zst
PeerTube-0ca454e3bdf89390d1a48760ab555ddd8725c82d.zip
Only display homepage when components are loaded
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts')
-rw-r--r--client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts
index a854d89f6..4462903db 100644
--- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts
+++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts
@@ -1,15 +1,18 @@
1import { buildPlaylistLink, buildVideoLink, buildVideoOrPlaylistEmbed } from 'src/assets/player/utils' 1import { buildPlaylistLink, buildVideoLink, buildVideoOrPlaylistEmbed } from 'src/assets/player/utils'
2import { environment } from 'src/environments/environment' 2import { environment } from 'src/environments/environment'
3import { Component, ElementRef, Input, OnInit } from '@angular/core' 3import { Component, ElementRef, Input, OnInit } from '@angular/core'
4import { CustomMarkupComponent } from './shared'
4 5
5@Component({ 6@Component({
6 selector: 'my-embed-markup', 7 selector: 'my-embed-markup',
7 template: '' 8 template: ''
8}) 9})
9export class EmbedMarkupComponent implements OnInit { 10export class EmbedMarkupComponent implements CustomMarkupComponent, OnInit {
10 @Input() uuid: string 11 @Input() uuid: string
11 @Input() type: 'video' | 'playlist' = 'video' 12 @Input() type: 'video' | 'playlist' = 'video'
12 13
14 loaded: undefined
15
13 constructor (private el: ElementRef) { } 16 constructor (private el: ElementRef) { }
14 17
15 ngOnInit () { 18 ngOnInit () {