Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Aug 31, 2021
1 parent cbd54fe commit 29ed1da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ comments.file
# Report for tests
tests/report/cucumber_report.json
tests/report/cucumber_report.html
.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@
</template>
</div>
<div>
<oc-avatar-group :users="collaborators_avatar" accessible-description="This resource is shared with many users." :stacked="true" :isTooltipDisplayed="true" class="oc-mb" />
<oc-avatars
:items="collaborators_avatar"
accessible-description="This resource is shared with many users."
:stacked="true"
:is-tooltip-displayed="true"
class="oc-mb"
/>
</div>
<new-collaborator
v-if="$_ocCollaborators_canShare && currentView === VIEW_NEW"
Expand Down Expand Up @@ -181,7 +187,8 @@ export default {
},
collaborators_avatar() {
const result = []
this.collaborators.forEach(c => result.push(c.collaborator))
console.log(this.collaborators)
this.collaborators.forEach(c => result.push({ ...c.collaborator, shareType: c.shareType }))
return result
},
Expand Down
12 changes: 8 additions & 4 deletions packages/web-app-files/src/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ export function aggregateResourceShares(
prev.sharedWith.push({
username: share.share_with,
displayName: share.share_with_displayname,
avatar: undefined
avatar: undefined,
shareType: share.share_type
})
} else if (share.share_type === shareTypes.link) {
prev.sharedWith.push({
name: share.name || share.token,
link: true
link: true,
shareType: share.share_type
})
}

Expand All @@ -139,14 +141,16 @@ export function aggregateResourceShares(
{
username: share.share_with,
displayName: share.share_with_displayname,
avatar: undefined
avatar: undefined,
shareType: share.share_type
}
]
} else if (share.share_type === shareTypes.link) {
share.sharedWith = [
{
name: share.name || share.token,
link: true
link: true,
shareType: share.share_type
}
]
}
Expand Down

0 comments on commit 29ed1da

Please sign in to comment.