Fix build

This commit is contained in:
Chocobozzz 2024-11-26 07:14:30 +01:00
parent 4551314baa
commit 2ebfe772ed
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 13 additions and 7 deletions

View File

@ -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>

View File

@ -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

View File

@ -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 {