Fix build

pull/6711/merge
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 *ngIf="!loaded" class="loader mt-4">
<my-loader size="xl" [loading]="!loaded"></my-loader>
</div>
<my-user-notifications
[ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
[markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
></my-user-notifications>
@defer (when loaded) {
<my-user-notifications
[ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
[markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
></my-user-notifications>
} @placeholder {
<my-loader size="xl" [loading]="loaded"></my-loader>
}
<div class="all-notifications">
<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 () {
console.log('loaded')
this.componentPagination = {
currentPage: 1,
itemsPerPage: this.itemsPerPage, // Reset items per page, because of the @Input() variable

View File

@ -11,7 +11,7 @@ import {
VideoState,
VideoStreamingPlaylistType
} from '@peertube/peertube-models'
import { HLSOptions, PeerTubePlayerContructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'
import { HLSOptions, PeerTubePlayerConstructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player'
import {
getBoolOrDefault,
getParamString,
@ -174,7 +174,7 @@ export class PlayerOptionsBuilder {
getPlayerConstructorOptions (options: {
serverConfig: HTMLServerConfig
authorizationHeader: () => string
}): PeerTubePlayerContructorOptions {
}): PeerTubePlayerConstructorOptions {
const { serverConfig, authorizationHeader } = options
return {