Skip to content

Commit

Permalink
Add apriltag import button
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Aug 30, 2023
1 parent 34330fa commit 1d22a23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion photon-client/src/components/app/photon-log-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ document.addEventListener("keydown", e => {
v-if="logs.length === 0"
style="font-size: 18px; font-weight: 600"
>
There are no Logs to show
There are no logs to show
</v-card-text>
<v-virtual-scroll
v-else
Expand Down
8 changes: 6 additions & 2 deletions photon-client/src/components/settings/DeviceControlCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ enum ImportType {
AllSettings,
HardwareConfig,
HardwareSettings,
NetworkConfig
NetworkConfig,
ApriltagFieldLayout
}
const showImportDialog = ref(false);
Expand All @@ -152,6 +153,9 @@ const handleSettingsImport = () => {
case ImportType.NetworkConfig:
settingsEndpoint = "/networkConfig";
break;
case ImportType.ApriltagFieldLayout:
settingsEndpoint = "/aprilTagFieldLayout";
break;
}
axios.post(`/settings${settingsEndpoint}`, formData, {
Expand Down Expand Up @@ -286,7 +290,7 @@ const handleSettingsImport = () => {
v-model="importType"
label="Type"
tooltip="Select the type of settings file you are trying to upload"
:items="['All Settings', 'Hardware Config', 'Hardware Settings', 'Network Config']"
:items="['All Settings', 'Hardware Config', 'Hardware Settings', 'Network Config', 'Apriltag Layout']"
:select-cols="10"
/>
</v-row>
Expand Down
4 changes: 2 additions & 2 deletions photon-client/src/components/settings/MetricsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const fetchMetrics = () => {
if(error.request) {
useStateStore().showSnackbarMessage({
color: "error",
message: "Unable to fetch Metrics! The backend didn't respond."
message: "Unable to fetch metrics! The backend didn't respond."
});
} else {
useStateStore().showSnackbarMessage({
color: "error",
message: "An error occurred while trying to fetch Metrics."
message: "An error occurred while trying to fetch metrics."
});
}
})
Expand Down

0 comments on commit 1d22a23

Please sign in to comment.