|
|
|
@ -12,23 +12,11 @@ const { isMobileMode } = useGlobal()
|
|
|
|
|
const { isUIAllowed } = useRoles() |
|
|
|
|
|
|
|
|
|
const { allowCSVDownload } = useSharedView() |
|
|
|
|
|
|
|
|
|
const isViewSidebarAvailable = computed( |
|
|
|
|
() => (isGrid.value || isGallery.value || isKanban.value || isMap.value) && !isPublic.value, |
|
|
|
|
) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div |
|
|
|
|
class="nc-table-toolbar h-12 min-h-12 py-1 flex gap-2 items-center border-b border-gray-200 overflow-hidden" |
|
|
|
|
:class="{ |
|
|
|
|
'h-8': isMobileMode, |
|
|
|
|
'max-h-[var(--topbar-height)] min-h-[var(--topbar-height)]': !isMobileMode, |
|
|
|
|
'pl-3 pr-0': isViewSidebarAvailable && !isMobileMode, |
|
|
|
|
'px-3': !isViewSidebarAvailable && !isMobileMode, |
|
|
|
|
'px-1': isMobileMode, |
|
|
|
|
}" |
|
|
|
|
style="z-index: 7" |
|
|
|
|
class="nc-table-toolbar py-1 px-1 xs:(px-1) flex gap-2 items-center border-b border-gray-200 overflow-hidden xs:(min-h-14) max-h-[var(--topbar-height)] min-h-[var(--topbar-height)] z-7" |
|
|
|
|
> |
|
|
|
|
<template v-if="isViewsLoading"> |
|
|
|
|
<a-skeleton-input :active="true" class="!w-44 !h-4 ml-2 !rounded overflow-hidden" /> |
|
|
|
|