From 2ebfe772ed10af34f48fbd012f0d85aa3e4fee59 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Nov 2024 07:14:30 +0100 Subject: [PATCH] Fix build --- .../header/notification-dropdown.component.html | 14 +++++++++----- .../user-notifications.component.ts | 2 ++ .../videos/shared/player-options-builder.ts | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/client/src/app/header/notification-dropdown.component.html b/client/src/app/header/notification-dropdown.component.html index 50b6cbb25..789a36b17 100644 --- a/client/src/app/header/notification-dropdown.component.html +++ b/client/src/app/header/notification-dropdown.component.html @@ -61,13 +61,17 @@
-
- + @defer (when loaded) { + + } @placeholder { + + + }
diff --git a/client/src/app/shared/standalone-notifications/user-notifications.component.ts b/client/src/app/shared/standalone-notifications/user-notifications.component.ts index a3f25fcc0..4cf3fcffc 100644 --- a/client/src/app/shared/standalone-notifications/user-notifications.component.ts +++ b/client/src/app/shared/standalone-notifications/user-notifications.component.ts @@ -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 diff --git a/client/src/standalone/videos/shared/player-options-builder.ts b/client/src/standalone/videos/shared/player-options-builder.ts index fde8783eb..94b103f50 100644 --- a/client/src/standalone/videos/shared/player-options-builder.ts +++ b/client/src/standalone/videos/shared/player-options-builder.ts @@ -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 {