Skip to content

Commit

Permalink
Add page to allow selection of which variables to show in the overlay…
Browse files Browse the repository at this point in the history
… subtitles log
  • Loading branch information
rafaellehmkuhl committed Nov 27, 2023
1 parent ad782f6 commit a0dcbb3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ConfigurationMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import ConfigurationAlertsView from '../views/ConfigurationAlertsView.vue'
import ConfigurationDevelopmentView from '../views/ConfigurationDevelopmentView.vue'
import ConfigurationGeneralView from '../views/ConfigurationGeneralView.vue'
import ConfigurationJoystickView from '../views/ConfigurationJoystickView.vue'
import ConfigurationLogsView from '../views/ConfigurationLogsView.vue'
const store = useMainVehicleStore()
Expand All @@ -58,6 +59,11 @@ const menus = [
title: 'Joystick',
component: ConfigurationJoystickView,
},
{
icon: 'mdi-script',
title: 'Logs',
component: ConfigurationLogsView,
},
{
icon: 'mdi-bell-ring',
title: 'Alerts',
Expand Down
23 changes: 23 additions & 0 deletions src/views/ConfigurationLogsView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template>
<BaseConfigurationView>
<template #title>Logs configuration</template>
<template #content>
<h1 class="text-lg font-bold text-slate-600">Variables to be show in the overlay subtitles log:</h1>
<div class="flex w-[60%] flex-wrap">
<v-checkbox
v-for="variable in DatalogVariable"
:key="variable"
v-model="datalogger.selectedVariablesToShow.value"
:label="variable"
:value="variable"
></v-checkbox>
</div>
</template>
</BaseConfigurationView>
</template>

<script setup lang="ts">
import { datalogger, DatalogVariable } from '@/libs/logging'
import BaseConfigurationView from './BaseConfigurationView.vue'
</script>

0 comments on commit a0dcbb3

Please sign in to comment.