* [bug#65177] Move the code of biz to pms.
This commit is contained in:
@@ -2227,11 +2227,32 @@ window.getDocViewSidebarTabs = function(doc, info)
|
||||
].filter(Boolean);
|
||||
}
|
||||
|
||||
if(info.isNewDoc) return [{key: 'outline', icon: 'list-box', title: getLang('docOutline')}];
|
||||
return [
|
||||
{key: 'outline', icon: 'list-box', title: getLang('docOutline')},
|
||||
{key: 'history', icon: 'history', title: getLang('history')},
|
||||
]
|
||||
let tabList = [];
|
||||
if(info.isNewDoc)
|
||||
{
|
||||
tabList.push({key: 'outline', icon: 'list-box', title: getLang('docOutline')});
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
tabList.push(
|
||||
{key: 'outline', icon: 'list-box', title: getLang('docOutline')},
|
||||
{key: 'history', icon: 'history', title: getLang('history')}
|
||||
);
|
||||
}
|
||||
|
||||
if(info.mode == 'view' && doc.status != 'draft' && !doc.api)
|
||||
{
|
||||
tabList.push(
|
||||
{
|
||||
key : 'relateObject',
|
||||
icon : 'link',
|
||||
title : getLang('relateObject'),
|
||||
render: function(doc){return {fetcher: $.createLink('doc', 'ajaxGetRelatedObjects', `docID=${doc.id}`)}}
|
||||
});
|
||||
}
|
||||
|
||||
return tabList;
|
||||
}
|
||||
|
||||
function getSpaceFetcher(spaceType, spaceID = 0)
|
||||
|
||||
Reference in New Issue
Block a user