Skip to content

Commit

Permalink
Fix trashbin resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Mar 7, 2021
1 parent a69fe29 commit cc76a0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web-app-files/src/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,15 @@ export function buildCollaboratorShare(s, file, allowSharePerm) {
export function buildDeletedResource(resource) {
const isFolder = resource.type === 'dir'
const fullName = resource.fileInfo['{http://owncloud.org/ns}trashbin-original-filename']
const extension = isFolder ? '' : _getFileExtension(fullName)
return {
type: isFolder ? 'folder' : resource.type,
ddate: resource.fileInfo['{http://owncloud.org/ns}trashbin-delete-datetime'],
name: path.basename(fullName),
extension: isFolder ? '' : _getFileExtension(fullName),
extension,
path: resource.fileInfo['{http://owncloud.org/ns}trashbin-original-location'],
id: path.basename(resource.name),
icon: isFolder ? 'folder' : getFileIcon(this.extension),
icon: isFolder ? 'folder' : getFileIcon(extension),
indicators: []
}
}

0 comments on commit cc76a0e

Please sign in to comment.