Skip to content

Commit

Permalink
fix: also fix a kinematic none system
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Dec 7, 2024
1 parent f3332b1 commit bd4ca10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/components/mixins/zoffset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export default class ZoffsetMixin extends Vue {
}

get endstop_pin() {
const endstop_pin = this.settings[this.stepper_name]?.endstop_pin ?? ''

return endstop_pin.trim()
return this.settings[this.stepper_name]?.endstop_pin?.trim() ?? null
}

get zOffset(): number {
Expand Down
26 changes: 14 additions & 12 deletions src/components/settings/SettingsControlTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,20 @@
</settings-row>
<v-divider class="my-2" />
</template>
<settings-row
:title="$t('Settings.ControlTab.ZOffsetSaveOption')"
:sub-title="$t('Settings.ControlTab.ZOffsetSaveOptionDescription')">
<v-select
v-model="offsetZSaveOption"
:items="offsetZSaveOptions"
class="mt-0"
hide-details
outlined
dense />
</settings-row>
<v-divider class="my-2" />
<template v-if="endstop_pin !== null">
<settings-row
:title="$t('Settings.ControlTab.ZOffsetSaveOption')"
:sub-title="$t('Settings.ControlTab.ZOffsetSaveOptionDescription')">
<v-select
v-model="offsetZSaveOption"
:items="offsetZSaveOptions"
class="mt-0"
hide-details
outlined
dense />
</settings-row>
<v-divider class="my-2" />
</template>
<settings-row :title="$t('Settings.ControlTab.ZOffsetIncrements')" :mobile-second-row="true">
<v-combobox
v-model="offsetsZ"
Expand Down

0 comments on commit bd4ca10

Please sign in to comment.