Skip to content

Commit

Permalink
Rename the GenericIndicator mini-widget to VeryGenericIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Sep 14, 2023
1 parent a7de368 commit f9baca7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/MiniWidgetInstantiator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<template v-if="widgetType === MiniWidgetType.DepthIndicator">
<DepthIndicator :options="options" />
</template>
<template v-if="widgetType === MiniWidgetType.GenericIndicator">
<GenericIndicator :options="options" />
<template v-if="widgetType === MiniWidgetType.VeryGenericIndicator">
<VeryGenericIndicator :options="options" />
</template>
<template v-if="widgetType === MiniWidgetType.JoystickCommIndicator">
<JoystickCommIndicator :options="options" />
Expand Down Expand Up @@ -40,11 +40,11 @@ import ArmerButton from './mini-widgets/ArmerButton.vue'
import BaseCommIndicator from './mini-widgets/BaseCommIndicator.vue'
import BatteryIndicator from './mini-widgets/BatteryIndicator.vue'
import DepthIndicator from './mini-widgets/DepthIndicator.vue'
import GenericIndicator from './mini-widgets/GenericIndicator.vue'
import JoystickCommIndicator from './mini-widgets/JoystickCommIndicator.vue'
import MiniVideoRecorder from './mini-widgets/MiniVideoRecorder.vue'
import ModeSelector from './mini-widgets/ModeSelector.vue'
import SatelliteIndicator from './mini-widgets/SatelliteIndicator.vue'
import VeryGenericIndicator from './mini-widgets/VeryGenericIndicator.vue'
import ViewSelector from './mini-widgets/ViewSelector.vue'
const props = defineProps<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</div>
<div v-if="currentTab === 'templates'" class="flex flex-wrap items-center justify-around">
<div
v-for="(template, i) in genericIndicatorTemplates"
v-for="(template, i) in veryGenericIndicatorTemplates"
:key="i"
class="flex items-center w-[6.25rem] h-12 py-1 pl-6 pr-1 rounded-md text-white justify-center cursor-pointer hover:bg-slate-100/20 transition-all"
@click="setIndicatorFromTemplate(template)"
Expand All @@ -121,7 +121,7 @@ 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 GenericIndicatorTemplate, genericIndicatorTemplates } from '@/types/genericIndicator'
import { type VeryGenericIndicatorTemplate, veryGenericIndicatorTemplates } from '@/types/genericIndicator'
import Dialog from '../Dialog.vue'
Expand Down Expand Up @@ -177,7 +177,7 @@ const showConfigurationMenu = ref(false)
const iconSearchString = ref('')
const currentTab = ref('templates')
const setIndicatorFromTemplate = (template: GenericIndicatorTemplate): void => {
const setIndicatorFromTemplate = (template: VeryGenericIndicatorTemplate): void => {
options.displayName = template.displayName
options.variableName = template.variableName
options.iconName = template.iconName
Expand Down
4 changes: 2 additions & 2 deletions src/types/genericIndicator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Variables that define generic indicator
*/
export interface GenericIndicatorTemplate {
export interface VeryGenericIndicatorTemplate {
/**
* Name to be displayed on the widget
*/
Expand All @@ -28,7 +28,7 @@ export interface GenericIndicatorTemplate {
variableMultiplier: number
}

export const genericIndicatorTemplates: GenericIndicatorTemplate[] = [
export const veryGenericIndicatorTemplates: VeryGenericIndicatorTemplate[] = [
{
displayName: 'Cam Tilt',
variableName: 'CamTilt',
Expand Down
2 changes: 1 addition & 1 deletion src/types/miniWidgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export enum MiniWidgetType {
BaseCommIndicator = 'BaseCommIndicator',
BatteryIndicator = 'BatteryIndicator',
DepthIndicator = 'DepthIndicator',
GenericIndicator = 'GenericIndicator',
VeryGenericIndicator = 'VeryGenericIndicator',
JoystickCommIndicator = 'JoystickCommIndicator',
MiniVideoRecorder = 'MiniVideoRecorder',
ModeSelector = 'ModeSelector',
Expand Down

0 comments on commit f9baca7

Please sign in to comment.