Skip to content

Commit

Permalink
webcam setting limited to one service type
Browse files Browse the repository at this point in the history
making the webcam setting to enable to overlay exclusive to adaptive mjpeg streamer cameras.
  • Loading branch information
HelgeKeck committed Sep 18, 2023
1 parent 602a341 commit e121a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/settings/Webcams/WebcamForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
:label="$t('Settings.WebcamsTab.Vertically')" />
</v-col>
</v-row>
<v-row class="mt-5">
<v-row v-if="['mjpegstreamer-adaptive'].includes(webcam.service)" class="mt-5">
<v-col class="pt-1 pb-3">
<v-checkbox
v-model="nozzleCalibration"
Expand All @@ -143,7 +143,7 @@
:label="$t('Settings.WebcamsTab.EnableNozzleCalibrationOverlay')" />
</v-col>
</v-row>
<v-row v-if="nozzleCalibration" class="mt-5">
<v-row v-if="nozzleCalibration && ['mjpegstreamer-adaptive'].includes(webcam.service)" class="mt-5">
<v-col class="pt-1 pb-3">
<v-text-field
v-model="pixelPerMM"
Expand All @@ -153,14 +153,14 @@
:label="$t('Settings.WebcamsTab.PixelPerMM')" />
</v-col>
</v-row>
<v-row v-if="nozzleCalibration">
<v-row v-if="nozzleCalibration && ['mjpegstreamer-adaptive'].includes(webcam.service)">
<v-col class="pt-1 pb-3">
<div class="v-label v-label--active theme--dark text-subtitle-1">
{{ $t('Settings.WebcamsTab.FlipNozzle') }}
</div>
</v-col>
</v-row>
<v-row v-if="nozzleCalibration" class="mt-0">
<v-row v-if="nozzleCalibration && ['mjpegstreamer-adaptive'].includes(webcam.service)" class="mt-0">
<v-col class="py-0">
<v-checkbox
v-model="nozzleFlipX"
Expand Down

0 comments on commit e121a36

Please sign in to comment.