diff --git a/src/pages/resource/resource-list.vue b/src/pages/resource/resource-list.vue index bd7fd3c..08c14a3 100644 --- a/src/pages/resource/resource-list.vue +++ b/src/pages/resource/resource-list.vue @@ -279,11 +279,11 @@ export default { let collectionsLink = '/collections'; let queryParams = []; - if (this.sharedBy) { - queryParams.push("sharedByMe=true"); - } else if (this.sharedWith) { - queryParams.push("sharedWithMe=true"); - } + // if (this.sharedBy) { + // queryParams.push("sharedByMe=true"); + // } else if (this.sharedWith) { + // queryParams.push("sharedWithMe=true"); + // } if (this.parentResource && this.parentResource.type === EmcResource.EMC_RESOURCE_TYPE.EMC_RESOURCE_TYPE_COLLECTION_GROUP) { queryParams.push(`types=${EmcResource.EMC_RESOURCE_TYPE.EMC_RESOURCE_TYPE_COLLECTION_GROUP}`); @@ -389,6 +389,13 @@ export default { return this.parentDirectory !== "/"; }, directories() { + if (this.resources && (this.sharedWith || this.sharedBy)) { + return this.resources.map(resource => { + let _directory = resource.resourcePath.replace(`${this.rootDirectory}${this.parentDirectory}`, ""); + return {...resource, name: _directory}; + }); + } + if (!this.parentResourceId && this.resources) { const _directories = []; const _directoriesMap = {}; @@ -479,13 +486,13 @@ export default { resourceLink = `/collections?parentDirectory=${resource.path}`; } - if (this.sharedBy) { - resourceLink += `&sharedByMe=true`; - } - - if (this.sharedWith) { - resourceLink += `&sharedWithMe=true`; - } + // if (this.sharedBy) { + // resourceLink += `&sharedByMe=true`; + // } + // + // if (this.sharedWith) { + // resourceLink += `&sharedWithMe=true`; + // } return resourceLink; },