preparing file deletion
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -136,6 +136,7 @@ public class FileModule extends BaseHandler implements FileService {
|
||||
if (file.isDirectory()){
|
||||
Map<String,Object> map = getDirectory(file);
|
||||
map.put("title",filename.replace("/company/"+cpId,company.name()));
|
||||
map.put("delete",true);
|
||||
return sendContent(ex,map);
|
||||
}
|
||||
return getFile(ex, file);
|
||||
@@ -192,6 +193,7 @@ public class FileModule extends BaseHandler implements FileService {
|
||||
if (file.isDirectory()){
|
||||
Map<String,Object> map = getDirectory(file);
|
||||
map.put("title",filename.replace("/project/"+prjId,project.name()));
|
||||
map.put("delete",true);
|
||||
return sendContent(ex,map);
|
||||
}
|
||||
return getFile(ex, file);
|
||||
@@ -214,6 +216,7 @@ public class FileModule extends BaseHandler implements FileService {
|
||||
if (file.isDirectory()){
|
||||
Map<String,Object> map = getDirectory(file);
|
||||
map.put("title",filename);
|
||||
map.put("delete",true);
|
||||
return sendContent(ex,map);
|
||||
}
|
||||
return getFile(ex, file);
|
||||
|
||||
Reference in New Issue
Block a user