fix: various content fixes (#5676)
* fix: wrong lock field * fix: install_stage locking up due to previous failure stored as stale snapshot * fix: Error when updating instance Fixes #5671 * fix: prepr
This commit is contained in:
@@ -51,11 +51,7 @@ export function useContentFilters(items: Ref<ContentItem[]>, config?: ContentFil
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
config?.showUpdateFilter &&
|
||||
!config?.isPackLocked?.value &&
|
||||
items.value.some((m) => m.has_update)
|
||||
) {
|
||||
if (config?.showUpdateFilter && items.value.some((m) => m.has_update)) {
|
||||
options.push({ id: 'updates', label: 'Updates' })
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ const tableItems = computed<ContentCardTableItem[]>(() => {
|
||||
isBulkOperating.value ||
|
||||
item.installing === true,
|
||||
installing: item.installing === true,
|
||||
hasUpdate: !ctx.isPackLocked.value && item.has_update,
|
||||
hasUpdate: item.has_update,
|
||||
isClientOnly: isClientOnlyEnvironment(item.environment),
|
||||
overflowOptions: ctx.getOverflowOptions?.(item),
|
||||
}
|
||||
@@ -711,7 +711,7 @@ const confirmUnlinkModal = ref<InstanceType<typeof ConfirmUnlinkModal>>()
|
||||
</div>
|
||||
|
||||
<ButtonStyled
|
||||
v-if="hasBulkUpdateSupport && !ctx.isPackLocked.value && hasOutdatedProjects"
|
||||
v-if="hasBulkUpdateSupport && hasOutdatedProjects"
|
||||
color="green"
|
||||
type="transparent"
|
||||
color-fill="text"
|
||||
@@ -814,11 +814,7 @@ const confirmUnlinkModal = ref<InstanceType<typeof ConfirmUnlinkModal>>()
|
||||
>
|
||||
<template #actions>
|
||||
<ButtonStyled
|
||||
v-if="
|
||||
hasBulkUpdateSupport &&
|
||||
!ctx.isPackLocked.value &&
|
||||
selectedItems.some((m) => m.has_update)
|
||||
"
|
||||
v-if="hasBulkUpdateSupport && selectedItems.some((m) => m.has_update)"
|
||||
type="transparent"
|
||||
color="green"
|
||||
color-fill="text"
|
||||
|
||||
Reference in New Issue
Block a user