* [story #68129, done, 0.5] support for sorting modules in sidebar by dnd.
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user