* [bug#61869] Adjust item when the button has no priv.

This commit is contained in:
xieqiyu
2025-04-28 09:51:36 +08:00
committed by 刘刚
parent eb9b19e1ad
commit 40ba4545b4
+1 -1
View File
@@ -832,7 +832,7 @@ const actionsMap =
];
return [
(!isChapter && hasPriv('sortDoc')) || (isChapter && hasPriv('sortChapter')) ? {icon: 'move cursor-move', className: 'sort-handler', hint: lang.sortDoc, size: 'xs'} : null,
moreItems.length ? {icon: 'ellipsis-v', caret: false, placement: 'bottom-end', size: 'xs', items: moreItems} : null,
moreItems.every(item => item === null) ? null : {icon: 'ellipsis-v', caret: false, placement: 'bottom-end', size: 'xs', items: moreItems},
];
}