There is no mail for filemanager

This commit is contained in:
Johannes Zellner
2023-05-09 10:58:27 +02:00
parent acfc1ede6e
commit db040bf293
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -381,8 +381,6 @@ export default {
}
this.title = result.body.name;
} else if (type === 'mail') {
this.title = 'Mail';
} else {
console.error(`Unsupported type ${type}`);
return;
@@ -393,6 +391,7 @@ export default {
this.cwd = sanitize('/' + (cwd ? cwd.join('/') : '/'));
this.resourceType = type;
this.resourceId = resourceId;
this.directoryModel = createDirectoryModel(this.apiOrigin, this.accessToken, type === 'volume' ? `volumes/${resourceId}` : `apps/${resourceId}`);
this.loadCwd();
@@ -405,6 +404,7 @@ export default {
if ((toParams.type !== this.resourceType) || (toParams.resourceId !== this.resourceId)) {
this.resourceType = toParams.type;
this.resourceId = toParams.resourceId;
this.directoryModel = createDirectoryModel(this.apiOrigin, this.accessToken, toParams.type === 'volume' ? `volumes/${toParams.resourceId}` : `apps/${toParams.resourceId}`);
}