* [task#148406,done,0.2h] add can rename condition.
This commit is contained in:
@@ -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 || []};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user