separate send/receive card settings in metrics
This commit is contained in:
@@ -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()">
|
||||
|
||||
@@ -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 || []
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user