-import { first } from 'rxjs/operators'
+import { firstValueFrom } from 'rxjs'
import { ComponentRef, Injectable } from '@angular/core'
import { MarkdownService } from '@app/core'
import {
ContainerMarkupData,
EmbedMarkupData,
PlaylistMiniatureMarkupData,
- VideoFilter,
VideoMiniatureMarkupData,
VideosListMarkupData
} from '@shared/models'
const component = this.execAngularBuilder(selector, e)
if (component.instance.loaded) {
- const p = component.instance.loaded.pipe(first()).toPromise()
+ const p = firstValueFrom(component.instance.loaded)
loadedPromises.push(p)
}
isLive: this.buildBoolean(data.isLive),
- filter: this.buildBoolean(data.onlyLocal) ? 'local' as VideoFilter : undefined
+ isLocal: this.buildBoolean(data.onlyLocal) ? true : undefined
}
this.dynamicElementService.setModel(component, model)
root.classList.add('peertube-container', layoutClass)
+ root.style.justifyContent = data.justifyContent || 'space-between'
+
if (data.width) {
root.setAttribute('width', data.width)
}