separate send/receive card settings in metrics

This commit is contained in:
bimgeek
2026-04-10 14:37:38 +03:00
parent 1ebc0183c9
commit f31bd08fab
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@
:model-card-id="props.modelCard.modelCardId"
:settings="props.modelCard.settings"
:default-settings="settingsDefaults as unknown as CardSetting[]"
:is-sender="isSender"
>
<template #activator="{ toggle }">
<button class="action action-normal" @click="toggle()">
+2 -1
View File
@@ -33,6 +33,7 @@ const props = defineProps<{
settings?: CardSetting[]
modelCardId: string
defaultSettings?: CardSetting[]
isSender?: boolean
}>()
const store = useHostAppStore()
@@ -50,7 +51,7 @@ const updateSettings = (settings: CardSetting[]) => {
const saveSettings = async () => {
trackSettingsChange(
'Model Card Settings Updated',
props.isSender ? 'Publish Card Settings Updated' : 'Load Card Settings Updated',
newSettings,
props.defaultSettings || store.sendSettings || []
)