Updating angular to the v12

This commit is contained in:
Zoe Roux 2021-08-27 16:59:07 +02:00
commit ef7b22523d
2 changed files with 6 additions and 6 deletions

View File

@ -51,19 +51,19 @@ import { UnauthorizedComponent } from "./unauthorized/unauthorized.component";
OidcModule.forRoot({
config: {
authority: window.location.origin,
redirectUrl: "/",
postLogoutRedirectUri: "/logout",
redirectUrl: `${window.location.origin}/`,
postLogoutRedirectUri: `${window.location.origin}/logout`,
clientId: "kyoo.webapp",
responseType: "code",
triggerAuthorizationResultEvent: false,
scope: "openid profile offline_access kyoo.read kyoo.write kyoo.play kyoo.admin",
silentRenew: true,
silentRenewUrl: "/silent.html",
silentRenewUrl: `${window.location.origin}/silent.html`,
useRefreshToken: true,
startCheckSession: true,
forbiddenRoute: "/forbidden",
unauthorizedRoute: "/unauthorized",
forbiddenRoute: `${window.location.origin}/forbidden`,
unauthorizedRoute: `${window.location.origin}/unauthorized`,
logLevel: LogLevel.Warn
}
}),

View File

@ -26,7 +26,7 @@ export class ItemsUtils
if (!("startAir" in item))
return "";
if (item.endAir && item.startAir !== item.endAir)
if (item.endAir && item.startAir?.getFullYear() !== item.endAir.getFullYear())
return `${item.startAir.getFullYear()} - ${item.endAir.getFullYear()}`;
return item.startAir?.getFullYear().toString();
}