fix: content selection bar not showing in ModpackContentModal

This commit is contained in:
Calum H. (IMB11)
2026-07-31 08:35:06 +01:00
parent 65a3ac4b34
commit 8fe63d0e36
2 changed files with 8 additions and 1 deletions
@@ -95,6 +95,7 @@ interface Props {
ariaLabel?: string
getItemId?: (item: ContentItem) => string
toggleItems?: ContentItem[]
hideWhenModalOpen?: boolean
}
const props = withDefaults(defineProps<Props>(), {
@@ -111,6 +112,7 @@ const props = withDefaults(defineProps<Props>(), {
ariaLabel: undefined,
getItemId: undefined,
toggleItems: undefined,
hideWhenModalOpen: true,
})
const emit = defineEmits<{
@@ -181,7 +183,11 @@ const bulkProgressMessage = computed(() => {
</script>
<template>
<FloatingActionBar :shown="shown" :aria-label="ariaLabel" hide-when-modal-open>
<FloatingActionBar
:shown="shown"
:aria-label="ariaLabel"
:hide-when-modal-open="hideWhenModalOpen"
>
<div class="flex items-center gap-0.5">
<div
v-if="selectedItems.length > 0"
@@ -662,6 +662,7 @@ defineExpose({ show, showLoading, hide, getState, restore, updateItem, setItems
:selected-items="selectedItems"
:is-busy="props.actionDisabled"
:busy-tooltip="props.actionDisabledTooltip"
:hide-when-modal-open="false"
style="--left-bar-width: 0px; --right-bar-width: 0px"
@clear="selectedIds = []"
@enable="bulkEnable"