|
48 | 48 | </v-btn> |
49 | 49 | <v-btn variant="text" prepend-icon="mdi-close" @click="ignoreAction(action)"> Ignore </v-btn> |
50 | 50 | </div> |
| 51 | + <v-card-subtitle class="text-grey-lighten-1 text-center mt-3"> |
| 52 | + from {{ action.extensionName }} |
| 53 | + </v-card-subtitle> |
51 | 54 | </v-card-item> |
52 | 55 | </v-card> |
53 | 56 | </v-list-item> |
@@ -228,7 +231,7 @@ import { |
228 | 231 | getAllMavlinkMessageActionConfigs, |
229 | 232 | registerMavlinkMessageActionConfig, |
230 | 233 | } from '@/libs/actions/mavlink-message-actions' |
231 | | -import { getActionsFromBlueOS, getJoystickSuggestionsFromBlueOS } from '@/libs/blueos' |
| 234 | +import { ActionWithExtensionName, getActionsFromBlueOS, getJoystickSuggestionsFromBlueOS } from '@/libs/blueos' |
232 | 235 | import { allAvailableButtons } from '@/libs/joystick/protocols' |
233 | 236 | import { useAppInterfaceStore } from '@/stores/appInterface' |
234 | 237 | import { useControllerStore } from '@/stores/controller' |
@@ -295,7 +298,7 @@ const activeTab = ref('actions') |
295 | 298 | /** |
296 | 299 | * Store discovered actions from BlueOS |
297 | 300 | */ |
298 | | -const discoveredActions = ref<ActionConfig[]>([]) |
| 301 | +const discoveredActions = ref<ActionWithExtensionName[]>([]) |
299 | 302 |
|
300 | 303 | /** |
301 | 304 | * Store discovered joystick suggestions from BlueOS |
@@ -601,8 +604,8 @@ const checkForBlueOSActions = async (): Promise<void> => { |
601 | 604 | const actionsToDisplay = actions.filter((action) => !existingActionNames.has(action.name)) |
602 | 605 |
|
603 | 606 | if (actionsToDisplay.length > 0) { |
604 | | - // Actions already have extension information attached from getActionsFromBlueOS |
605 | | - discoveredActions.value = actionsToDisplay |
| 607 | + // Actions now include extension names from the getActionsFromBlueOS function |
| 608 | + discoveredActions.value = actionsToDisplay as ActionWithExtensionName[] |
606 | 609 | } |
607 | 610 | } |
608 | 611 | } catch (error) { |
|
0 commit comments