mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix: content selection bar not showing in ModpackContentModal (#6950)
This commit is contained in:
@@ -95,6 +95,7 @@ interface Props {
|
|||||||
ariaLabel?: string
|
ariaLabel?: string
|
||||||
getItemId?: (item: ContentItem) => string
|
getItemId?: (item: ContentItem) => string
|
||||||
toggleItems?: ContentItem[]
|
toggleItems?: ContentItem[]
|
||||||
|
hideWhenModalOpen?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
@@ -111,6 +112,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
ariaLabel: undefined,
|
ariaLabel: undefined,
|
||||||
getItemId: undefined,
|
getItemId: undefined,
|
||||||
toggleItems: undefined,
|
toggleItems: undefined,
|
||||||
|
hideWhenModalOpen: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
@@ -181,7 +183,11 @@ const bulkProgressMessage = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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 class="flex items-center gap-0.5">
|
||||||
<div
|
<div
|
||||||
v-if="selectedItems.length > 0"
|
v-if="selectedItems.length > 0"
|
||||||
|
|||||||
@@ -664,6 +664,7 @@ defineExpose({ show, showLoading, hide, getState, restore, updateItem, setItems
|
|||||||
:selected-items="selectedItems"
|
:selected-items="selectedItems"
|
||||||
:is-busy="props.actionDisabled"
|
:is-busy="props.actionDisabled"
|
||||||
:busy-tooltip="props.actionDisabledTooltip"
|
:busy-tooltip="props.actionDisabledTooltip"
|
||||||
|
:hide-when-modal-open="false"
|
||||||
style="--left-bar-width: 0px; --right-bar-width: 0px"
|
style="--left-bar-width: 0px; --right-bar-width: 0px"
|
||||||
@clear="selectedIds = []"
|
@clear="selectedIds = []"
|
||||||
@enable="bulkEnable"
|
@enable="bulkEnable"
|
||||||
|
|||||||
Reference in New Issue
Block a user