* [bug#137606,done,2h] Set add module button.

This commit is contained in:
daitingting
2025-02-20 13:31:04 +08:00
committed by 谢杞钰
parent 34339392dd
commit 88c74a83db
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ $.extend(window.docAppActions,
/* 获取侧边栏没有模块时的操作按钮。 Get actions when sidebar no module. */
if(info.ui === 'sidebar-no-module')
{
if(!canAddModule) return;
if(!docAppHasPriv('addModule')) return;
return [{text: lang.actions.addModule, command: `addModule/${lib.id}/0/${lib.id}/child`, icon: 'plus', type: 'primary-pale'}];
}
+7
View File
@@ -125,6 +125,13 @@ foreach($lang->docTemplate->scopes as $scopeID => $scopeName)
(
setClass('text-gray'),
$lang->docTemplate->noTemplate
),
btn
(
setClass('btn secondary-pale'),
set::icon('plus'),
$lang->doc->createTemplate,
set::url(createLink('doc', 'browseTemplate', "libID=$scopeID&type=all&docID=0&orderBy=&recTotal=&recPerPae=20&pageID=1&mode=create"))
)
)
)