preparing file deletion

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-01 23:50:32 +02:00
parent 4ed0f80345
commit 0e0a77d4c9
4 changed files with 36 additions and 4 deletions

View File

@@ -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);