Fix build
This commit is contained in:
parent
4551314baa
commit
2ebfe772ed
|
@ -61,13 +61,17 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!loaded" class="loader mt-4">
|
<div *ngIf="!loaded" class="loader mt-4">
|
||||||
<my-loader size="xl" [loading]="!loaded"></my-loader>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<my-user-notifications
|
@defer (when loaded) {
|
||||||
[ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
|
<my-user-notifications
|
||||||
[markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
|
[ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
|
||||||
></my-user-notifications>
|
[markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
|
||||||
|
></my-user-notifications>
|
||||||
|
} @placeholder {
|
||||||
|
<my-loader size="xl" [loading]="loaded"></my-loader>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
<div class="all-notifications">
|
<div class="all-notifications">
|
||||||
<a *ngIf="loaded" class="text-decoration-underline" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)" i18n>
|
<a *ngIf="loaded" class="text-decoration-underline" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)" i18n>
|
||||||
|
|
|
@ -38,6 +38,8 @@ export class UserNotificationsComponent implements OnInit {
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
|
console.log('loaded')
|
||||||
|
|
||||||
this.componentPagination = {
|
this.componentPagination = {
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
itemsPerPage: this.itemsPerPage, // Reset items per page, because of the @Input() variable
|
itemsPerPage: this.itemsPerPage, // Reset items per page, because of the @Input() variable
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
VideoState,
|
VideoState,
|
||||||
VideoStreamingPlaylistType
|
VideoStreamingPlaylistType
|
||||||
} from '@peertube/peertube-models'
|
} from '@peertube/peertube-models'
|
||||||
import { HLSOptions, PeerTubePlayerContructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'
|
import { HLSOptions, PeerTubePlayerConstructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'
|
||||||
import {
|
import {
|
||||||
getBoolOrDefault,
|
getBoolOrDefault,
|
||||||
getParamString,
|
getParamString,
|
||||||
|
@ -174,7 +174,7 @@ export class PlayerOptionsBuilder {
|
||||||
getPlayerConstructorOptions (options: {
|
getPlayerConstructorOptions (options: {
|
||||||
serverConfig: HTMLServerConfig
|
serverConfig: HTMLServerConfig
|
||||||
authorizationHeader: () => string
|
authorizationHeader: () => string
|
||||||
}): PeerTubePlayerContructorOptions {
|
}): PeerTubePlayerConstructorOptions {
|
||||||
const { serverConfig, authorizationHeader } = options
|
const { serverConfig, authorizationHeader } = options
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue