diff --git a/apps/client/src/AppRouter.tsx b/apps/client/src/AppRouter.tsx index d64f8bd55..926c91849 100644 --- a/apps/client/src/AppRouter.tsx +++ b/apps/client/src/AppRouter.tsx @@ -38,7 +38,7 @@ const SMinimalTimer = withPreset(withData(MinimalTimerView)); const SClock = withPreset(withData(ClockView)); const SCountdown = withPreset(withData(Countdown)); const SBackstage = withPreset(withData(Backstage)); -const SProjectInfo = withPreset(withData(ProjectInfo)); +const SProjectInfo = withPreset(ProjectInfo); // NOTE: ProjectInfo does not use the viewWrapper since it has no options const SLowerThird = withPreset(withData(Lower)); const SStudio = withPreset(withData(StudioClock)); const STimeline = withPreset(withData(Timeline)); diff --git a/apps/client/src/common/components/navigation-menu/ViewNavigationMenu.tsx b/apps/client/src/common/components/navigation-menu/ViewNavigationMenu.tsx index 0b36187f1..733cd1f54 100644 --- a/apps/client/src/common/components/navigation-menu/ViewNavigationMenu.tsx +++ b/apps/client/src/common/components/navigation-menu/ViewNavigationMenu.tsx @@ -8,11 +8,11 @@ import useViewEditor from './useViewEditor'; interface ViewNavigationMenuProps { isLockable?: boolean; - supressSettings?: boolean; + suppressSettings?: boolean; } export default memo(ViewNavigationMenu); -function ViewNavigationMenu({ isLockable, supressSettings }: ViewNavigationMenuProps) { +function ViewNavigationMenu({ isLockable, suppressSettings }: ViewNavigationMenuProps) { const [isMenuOpen, menuHandler] = useDisclosure(); const { showEditFormDrawer, isViewLocked } = useViewEditor({ isLockable }); @@ -28,7 +28,7 @@ function ViewNavigationMenu({ isLockable, supressSettings }: ViewNavigationMenuP [ 'mod + ,', () => { - if (isViewLocked || supressSettings) return; + if (isViewLocked || suppressSettings) return; showEditFormDrawer(); }, { preventDefault: true }, @@ -43,7 +43,7 @@ function ViewNavigationMenu({ isLockable, supressSettings }: ViewNavigationMenuP <> showEditFormDrawer()} + toggleSettings={suppressSettings ? undefined : () => showEditFormDrawer()} /> diff --git a/apps/client/src/common/models/ProjectData.ts b/apps/client/src/common/models/ProjectData.ts index 8ee964be4..899f7052d 100644 --- a/apps/client/src/common/models/ProjectData.ts +++ b/apps/client/src/common/models/ProjectData.ts @@ -3,8 +3,8 @@ import { ProjectData } from 'ontime-types'; export const projectDataPlaceholder: ProjectData = { title: '', description: '', - backstageUrl: '', - backstageInfo: '', - projectLogo: null, + url: '', + info: '', + logo: null, custom: [], }; diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx index 4b8c3e607..ed3c2c604 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx @@ -22,8 +22,8 @@ interface ProjectCreateFromProps { type ProjectCreateFormValues = { title?: string; description?: string; - backstageInfo?: string; - backstageUrl?: string; + info?: string; + url?: string; custom?: { title: string; value: string }[]; }; @@ -107,18 +107,12 @@ export default function ProjectCreateForm(props: ProjectCreateFromProps) {