diff --git a/client/src/components/Common/ListHeader.vue b/client/src/components/Common/ListHeader.vue index e2e16cce18e1..de4f1d0f8755 100644 --- a/client/src/components/Common/ListHeader.vue +++ b/client/src/components/Common/ListHeader.vue @@ -2,7 +2,7 @@ import { library } from "@fortawesome/fontawesome-svg-core"; import { faAngleDown, faAngleUp, faBars, faGripVertical } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; -import { BButton } from "bootstrap-vue"; +import { BButton, BButtonGroup, BFormCheckbox } from "bootstrap-vue"; import { computed, ref } from "vue"; import { useUserStore } from "@/stores/userStore"; @@ -13,13 +13,25 @@ type ListView = "grid" | "list"; type SortBy = "create_time" | "update_time" | "name"; interface Props { + allSelected?: boolean; + showSelectAll?: boolean; showViewToggle?: boolean; + selectAllDisabled?: boolean; + indeterminateSelected?: boolean; } withDefaults(defineProps(), { + allSelected: false, + showSelectAll: false, showViewToggle: false, + selectAllDisabled: false, + indeterminateSelected: false, }); +const emit = defineEmits<{ + (e: "select-all"): void; +}>(); + const userStore = useUserStore(); const sortDesc = ref(true); @@ -47,33 +59,49 @@ defineExpose({