fix: disable deletion of model card while ops are happening (#87)

* chore: battling git

* fix: logic to card base for sender and receiver fix
This commit is contained in:
Björn Steinhagen
2026-02-16 10:50:28 +02:00
committed by GitHub
parent 60f3bed254
commit ed4aa92ce1
2 changed files with 6 additions and 6 deletions
+1
View File
@@ -5,6 +5,7 @@
:icon-left="Bars3Icon"
hide-text
size="sm"
:disabled="!!props.modelCard.progress"
@click.stop="openModelCardActionsDialog = true"
/>
<CommonDialog
+5 -6
View File
@@ -21,7 +21,9 @@
"
hide-text
class=""
:disabled="!canEdit || isSettingsMissing || ctaDisabled"
:disabled="
(!canEdit || isSettingsMissing || ctaDisabled) && !modelCard.progress
"
@click.stop="$emit('manual-publish-or-load')"
></FormButton>
</div>
@@ -284,12 +286,9 @@ const isSender = computed(() => {
})
const buttonTooltip = computed(() => {
if (props.modelCard.progress) return 'Cancel'
if (props.ctaDisabled) return props.ctaDisabledMessage
return props.modelCard.progress
? 'Cancel'
: isSender.value
? 'Publish model'
: 'Load selected version'
return isSender.value ? 'Publish model' : 'Load selected version'
})
const projectAccount = computed(() =>