Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion photon-client/src/types/SettingTypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { type ActivePipelineSettings, DefaultAprilTagPipelineSettings } from "@/types/PipelineTypes";
import type { Pose3d } from "@/types/PhotonTrackingTypes";
import type { WebsocketCameraSettingsUpdate } from "./WebsocketDataTypes";
import { reactive } from "vue";

export interface GeneralSettings {
version?: string;
Expand Down Expand Up @@ -274,7 +275,7 @@ export interface CameraSettingsChangeRequest {
quirksToChange: Record<ValidQuirks, boolean>;
}

export const PlaceholderCameraSettings: UiCameraConfiguration = Object.freeze({
export const PlaceholderCameraSettings: UiCameraConfiguration = reactive({
cameraPath: "/dev/null",

nickname: "Placeholder Camera",
Expand Down
8 changes: 7 additions & 1 deletion photon-client/src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ const showCameraSetupDialog = ref(useCameraSettingsStore().needsCameraConfigurat
<PipelineConfigCard />

<!-- TODO - not sure this belongs here -->
<v-dialog v-model="showCameraSetupDialog" max-width="800" dark>
<!-- Need v-model to allow the dialog to be dismissed and v-if to only display when cameras need configuration -->
<v-dialog
v-if="useCameraSettingsStore().needsCameraConfiguration"
v-model="showCameraSetupDialog"
max-width="800"
dark
>
<v-card flat color="surface">
<v-card-title>Set up some cameras to get started!</v-card-title>
<v-card-text class="pt-0">
Expand Down
Loading