* [story #68129, done, 0.5] support for sorting modules in sidebar by dnd.

This commit is contained in:
sunhao
2024-10-16 09:43:47 +08:00
committed by 刘刚
parent d16874681d
commit 78284b2ea9
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -394,6 +394,14 @@ const actionsMap =
if(hasPriv('editModule')) items.push({text: lang.actions.editModule, command: `editModule/${module.id}`});
if(hasPriv('deleteModule')) items.push({text: lang.actions.delModule, command: `deleteModule/${module.id}`});
if(info.ui === 'sidebar')
{
return [
hasPriv('sortModule') ? {icon: 'move cursor-move', className: 'sort-handler', hint: lang.sortLib, size: 'xs'} : null,
items.length ? {icon: 'ellipsis-v', caret: false, placement: 'bottom-end', size: 'xs', items: items} : null,
];
}
return items;
},
+1
View File
@@ -108,6 +108,7 @@ $langData->release = $lang->doc->release;
$langData->batchMove = $lang->doc->batchMove;
$langData->filterTypes = $lang->doc->filterTypes;
$langData->fileFilterTypes = $lang->doc->fileFilterTypes;
$langData->sortCatalog = $lang->doc->sortCatalog;
$langData->sortDoc = $lang->doc->sortDoc;
/**