There is no mail for filemanager
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user