Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed lint issues
Signed-off-by: Tarun Samanta <[email protected]>
  • Loading branch information
SamantaTarun committed Mar 29, 2023
commit dd84ec4fea7f8bb5ed2a4ab3976eeb22479879d2
4 changes: 2 additions & 2 deletions apps/files_sharing/src/views/SharingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default {
this.$set(this.sharedWithMe, 'subtitle', t('files_sharing', 'this share just expired.'))
}
},

// .sort((a, b) => b.createdTime - a.createdTime)
/**
* Process the current shares data
* and init shares[]
Expand All @@ -259,7 +259,7 @@ export default {
// create Share objects and sort by newest
const shares = data.ocs.data
.map(share => new Share(share))
.sort((a.title.localeCompare(b.title) === 0 ? b.createdTime - a.createdTime : a.title.localeCompare(b.title)),)
.sort((a, b) => a.title.localeCompare(b.title) === 0 ? b.createdTime - a.createdTime : a.title.localeCompare(b.title))

this.linkShares = shares.filter(share => share.type === this.SHARE_TYPES.SHARE_TYPE_LINK || share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL)
this.shares = shares.filter(share => share.type !== this.SHARE_TYPES.SHARE_TYPE_LINK && share.type !== this.SHARE_TYPES.SHARE_TYPE_EMAIL)
Expand Down