Skip to content

Commit

Permalink
remove disabling dropdown fields when their is only one option
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 22, 2023
1 parent 357e9a9 commit 22d8f92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const saveCameraSettings = () => {
v-model="useStateStore().currentCameraIndex"
label="Camera"
:items="useCameraSettingsStore().cameraNames"
:disabled="useCameraSettingsStore().cameraNames.length <= 1"
:select-cols="8"
@input="args => useCameraSettingsStore().setCurrentCameraIndex(args)"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ const cancelChangePipelineType = () => {
v-model="useStateStore().currentCameraIndex"
label="Camera"
:items="useCameraSettingsStore().cameraNames"
:disabled="useCameraSettingsStore().cameraNames.length <= 1"
@input="changeCurrentCameraIndex"
/>
<cv-input
Expand Down Expand Up @@ -198,8 +197,7 @@ const cancelChangePipelineType = () => {
label="Pipeline"
tooltip="Each pipeline runs on a camera output and stores a unique set of processing settings"
:disabled="useCameraSettingsStore().isDriverMode
|| useCameraSettingsStore().isCalibrationMode
|| useCameraSettingsStore().pipelineNames.length <= 1"
|| useCameraSettingsStore().isCalibrationMode"
:items="pipelineNamesWrapper"
@input="args => useCameraSettingsStore().changeCurrentPipelineIndex(args, true)"
/>
Expand Down

0 comments on commit 22d8f92

Please sign in to comment.