* [task#148406,done,0.2h] add can rename condition.

This commit is contained in:
sunguangming
2025-08-14 04:11:51 +00:00
parent ed89cec567
commit 4b388d6f04
+2 -2
View File
@@ -37,7 +37,7 @@ window.getDocActions = function(doc, deliverable)
else
{
actions[0] = {icon: 'eye', key: 'view', url};
actions[1] = {icon: 'edit', key: 'rename'};
if(doc.canRename) actions[1] = {icon: 'edit', key: 'rename'};
actions[2] = {icon: 'trash', key: 'delete'};
}
return actions;
@@ -62,4 +62,4 @@ window.getDeliverableActions = function(deliverable, category)
window.getTemplateMenu = function(item, category)
{
return {items: category.template || []};
}
}