* [bug#137606,done,2h] Set add module button.
This commit is contained in:
@@ -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'}];
|
||||
}
|
||||
|
||||
|
||||
@@ -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"))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user