mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Deleted Files and Deleted Folders now show file/folder icon
. Fix to my over zealous refactoring in Submit Dialog git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -697,6 +697,9 @@ public class AVMBrowseBean implements IContextListener
|
||||
return this.userSandboxes.getSelectedNodes(this.username);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the special Submit All action has been initialised
|
||||
*/
|
||||
public boolean getSubmitAll()
|
||||
{
|
||||
return this.submitAll;
|
||||
|
@@ -484,6 +484,11 @@ public class SubmitDialog extends BaseDialogBean
|
||||
this.workflows.add(wrapper);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.submitItems.add(new ItemWrapper(node));
|
||||
submittedPaths.add(node.getPath());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -669,8 +674,7 @@ public class SubmitDialog extends BaseDialogBean
|
||||
|
||||
public String getIcon()
|
||||
{
|
||||
// TODO: handle deleted file types here once implemented in the AVMNodeType enum
|
||||
if (descriptor.isFile())
|
||||
if (descriptor.isDeletedFile())
|
||||
{
|
||||
return Utils.getFileTypeImage(descriptor.getName(), true);
|
||||
}
|
||||
|
@@ -623,8 +623,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
|
||||
// must have been deleted from this sandbox - show as ghosted
|
||||
String name = node.getName();
|
||||
out.write("<td width=16>");
|
||||
// TODO: need new solution - isFile() and isFolder() both return false for a deleted node!
|
||||
if (node.isFile())
|
||||
if (node.isDeletedFile())
|
||||
{
|
||||
out.write(Utils.buildImageTag(fc, Utils.getFileTypeImage(fc, name, true), ""));
|
||||
out.write("</td><td style='color:#aaaaaa'>");
|
||||
|
Reference in New Issue
Block a user