* [story#71529] add sort chapter.

This commit is contained in:
qixinzhi
2025-03-10 14:33:56 +08:00
committed by 孙浩
parent 5d6cfafed0
commit 41b7149a64
+1 -1
View File
@@ -775,7 +775,7 @@ const actionsMap =
isChapter && hasPriv('deleteChapter') ? {icon: 'trash', text: lang.deleteChapter, command: `deleteChapter/${doc.id}`} : null,
];
return [
hasPriv('sortDoc') ? {icon: 'move cursor-move', className: 'sort-handler', hint: lang.sortDoc, size: 'xs'} : null,
(!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,
];
}