diff --git a/src/stores/mainVehicle.ts b/src/stores/mainVehicle.ts index 77061f8b7..ed65fcf28 100644 --- a/src/stores/mainVehicle.ts +++ b/src/stores/mainVehicle.ts @@ -1,6 +1,6 @@ import { useStorage, useTimestamp } from '@vueuse/core' import { defineStore } from 'pinia' -import { computed, onBeforeUnmount, reactive, ref, watch } from 'vue' +import { capitalize, computed, onBeforeUnmount, reactive, ref, watch } from 'vue' import { defaultGlobalAddress } from '@/assets/defaults' import * as Connection from '@/libs/connection/connection' @@ -428,7 +428,7 @@ export const useMainVehicleStore = defineStore('main-vehicle', () => { // @ts-ignore: This type is huge. Needs refactoring typing here. Object.entries(parametersTable['BTN0_FUNCTION']['Values']).forEach((param) => { const rawText = param[1] as string - const formatedText = (rawText.charAt(0).toUpperCase() + rawText.slice(1)).replace(new RegExp('_', 'g'), ' ') + const formatedText = capitalize(rawText).replace(new RegExp('_', 'g'), ' ') buttonParameterTable.push({ title: formatedText as string, value: Number(param[0]) }) }) Object.entries(currentParameters).forEach((param) => { diff --git a/src/views/ConfigurationAlertsView.vue b/src/views/ConfigurationAlertsView.vue index 88efd1740..a435bea02 100644 --- a/src/views/ConfigurationAlertsView.vue +++ b/src/views/ConfigurationAlertsView.vue @@ -6,11 +6,7 @@ Enable voice on specific alert levels:
- +
Alert voice: @@ -26,6 +22,8 @@