File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
adminforth/spa/src/components Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <template v-if =" threeDotsDropdownItems ?.length || customActions ?.length " >
2
+ <template v-if =" threeDotsDropdownItems ?.length || customActions ?.length || ( bulkActions ?. some ( action => action . showInThreeDotsDropdown )) " >
3
3
<button
4
4
data-dropdown-toggle =" listThreeDotsDropdown"
5
5
class =" flex items-center py-2 px-2 text-sm font-medium text-lightThreeDotsMenuIconDots focus:outline-none bg-lightThreeDotsMenuIconBackground rounded border border-lightThreeDotsMenuIconBackgroundBorder hover:bg-lightThreeDotsMenuIconBackgroundHover hover:text-lightThreeDotsMenuIconDotsHover focus:z-10 focus:ring-4 focus:ring-lightThreeDotsMenuIconFocus dark:focus:ring-darkThreeDotsMenuIconFocus dark:bg-darkThreeDotsMenuIconBackground dark:text-darkThreeDotsMenuIconDots dark:border-darkThreeDotsMenuIconBackgroundBorder dark:hover:text-darkThreeDotsMenuIconDotsHover dark:hover:bg-darkThreeDotsMenuIconBackgroundHover rounded-default"
35
35
</div >
36
36
</a >
37
37
</li >
38
- <li v-if =" checkboxes.length" v-for =" action in bulkActions.filter(a => a.showInThreeDotsDropdown)" :key =" action.id" >
39
- <a href =" #" @click.prevent =" startBulkAction(action.id)" class =" block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover" >
38
+ <li v-for =" action in bulkActions.filter(a => a.showInThreeDotsDropdown)" :key =" action.id" >
39
+ <a href =" #" @click.prevent =" startBulkAction(action.id)"
40
+ class =" block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover"
41
+ :class =" {
42
+ 'pointer-events-none': !checkboxes.length,
43
+ 'opacity-50': !checkboxes.length,
44
+ 'cursor-not-allowed': !checkboxes.length
45
+ }" >
40
46
<div class =" flex items-center gap-2" >
41
47
<component
42
48
v-if =" action.icon"
You can’t perform that action at this time.
0 commit comments