Skip to content

Commit

Permalink
filter thermal presets for drop down menu
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Aug 25, 2024
1 parent 635b85b commit 29eac88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/widgets/thermals/TemperaturePresetsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@
<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator'
import StateMixin from '@/mixins/state'
import type { TemperaturePreset } from '@/store/config/types';
@Component({})
export default class TemperaturePresetsMenu extends Mixins(StateMixin) {
get presets () {
return this.$store.getters['config/getTempPresets']
const presets = this.$store.getters['config/getTempPresets']
return presets
.filter((preset: TemperaturePreset) => preset.visible)
}
}
</script>

0 comments on commit 29eac88

Please sign in to comment.