Skip to content

Commit

Permalink
Use the new management variables to control the config menu of mini-w…
Browse files Browse the repository at this point in the history
…idgets
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Sep 26, 2023
1 parent 80e4817 commit 213d34c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/mini-widgets/VeryGenericIndicator.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div
class="flex items-center justify-center h-12 py-1 text-white transition-all cursor-pointer w-fit hover:bg-slate-100/20"
@click="showConfigurationMenu = !showConfigurationMenu"
>
<span class="relative w-[2rem] mdi icon-symbol" :class="[miniWidget.options.iconName]"></span>
<div class="flex flex-col items-start justify-center mx-1 select-none w-fit min-w-[3rem]">
Expand All @@ -14,7 +13,7 @@
<span class="w-full text-sm font-semibold leading-4 whitespace-nowrap">{{ miniWidget.options.displayName }}</span>
</div>
</div>
<Dialog v-model:show="showConfigurationMenu" class="w-80">
<Dialog v-model:show="miniWidget.managerVars.configMenuOpen" class="w-80">
<div class="w-full h-full">
<div class="flex items-center mb-3 justify-evenly">
<div
Expand Down Expand Up @@ -119,13 +118,13 @@

<script setup lang="ts">
import * as MdiExports from '@mdi/js/mdi'
import { toReactive } from '@vueuse/core'
import { computed, onBeforeMount, onMounted, ref, toRefs, watch } from 'vue'
import Dropdown from '@/components/Dropdown.vue'
import { round } from '@/libs/utils'
import { useMainVehicleStore } from '@/stores/mainVehicle'
import { type VeryGenericIndicatorPreset, veryGenericIndicatorPresets } from '@/types/genericIndicator'
import type { MiniWidget } from '@/types/miniWidgets'
import Dialog from '../Dialog.vue'
Expand Down

0 comments on commit 213d34c

Please sign in to comment.