Skip to content

Commit 4592d51

Browse files
add no-footer prop to ScrollList which conditionally renders the footer
1 parent 655a334 commit 4592d51

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

client/src/components/ScrollList/ScrollList.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ interface Props<T> {
2525
inPanel?: boolean;
2626
name?: string;
2727
namePlural?: string;
28+
noFooter?: boolean;
2829
propItems?: T[];
2930
propTotalCount?: number;
3031
propBusy?: boolean;
@@ -51,6 +52,7 @@ const props = withDefaults(defineProps<Props<T>>(), {
5152
inPanel: false,
5253
name: "item",
5354
namePlural: "items",
55+
noFooter: false,
5456
propItems: undefined,
5557
propTotalCount: undefined,
5658
propBusy: undefined,
@@ -235,7 +237,7 @@ watch(
235237
</div>
236238
<ScrollToTopButton :offset="scrollTop" @click="scrollToTop" />
237239
</div>
238-
<div :class="!inPanel && 'd-flex flex-row mt-3'">
240+
<div v-if="!props.noFooter" :class="!inPanel && 'd-flex flex-row mt-3'">
239241
<div
240242
v-if="!allLoaded"
241243
class="mr-auto d-flex justify-content-center align-items-center"

client/src/components/ToolsList/ToolsListTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ watchEffect(() => {
6161
name="tool"
6262
name-plural="tools"
6363
:load-disabled="!props.tools.length"
64-
show-count-in-footer>
64+
show-count-in-footer
65+
no-footer>
6566
<template v-slot:loading>
6667
<BAlert v-if="props.tools.length" show>
6768
<LoadingSpan message="Loading tools" />

0 commit comments

Comments
 (0)