REQ-3540: oss client
This commit is contained in:
parent
e6aa70250f
commit
1e1d8bf0ad
@ -52,7 +52,7 @@ public class TemplateDatabaseCreateDirRequest extends NodeCreateTemplateDatabase
|
||||
@Override
|
||||
public IndexNodeAttributes attributes() {
|
||||
IndexNodeAttributes attributes = IndexNodeAttributes.create();
|
||||
attributes.getOrCreateDirectoryAttributes().setTemplateDatabaseDir(true);
|
||||
attributes.getOrCreateDirectoryAttributes().setIsTemplateDatabaseDir(true);
|
||||
attributes.setCustomIcon(customIcon);
|
||||
return attributes;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public class TemplateDatabaseQueryService {
|
||||
response.getDatabaseOrDirInfo().setBizCode(indexNode.getBizCode());
|
||||
response.getDatabaseOrDirInfo().setDescription(indexNode.getDescription());
|
||||
response.getDatabaseOrDirInfo().setIcon(indexNode.getIcon());
|
||||
response.getDatabaseOrDirInfo().setCustomIcon(indexNode.getOrCreateAttributes().isCustomIcon());
|
||||
response.getDatabaseOrDirInfo().setCustomIcon(indexNode.getOrCreateAttributes().getCustomIcon());
|
||||
if (indexNode.isDatabase()) {
|
||||
TemplateDatabase template = templateDatabaseDao.findOrNull(request.getCode());
|
||||
if (template != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user