* [bug#61869] Adjust item when the button has no priv.
This commit is contained in:
@@ -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},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user