Skip to content

Commit

Permalink
Fix share avatar colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Mar 18, 2022
1 parent 0037432 commit 866ea60
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions changelog/unreleased/enhancement-move-share-indicators
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Enhancement: Move share indicators

We've moved the share/status indicators into a separate column
and adjusted the design in ODS.
and adjusted the design in ODS.

https://github.com/owncloud/web/issues/5976
https://github.com/owncloud/web/pull/6552
https://github.com/owncloud/owncloud-design-system/pull/2014
https://github.com/owncloud/web/pull/6583
https://github.com/owncloud/web/pull/6583
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Enhancement: Remove links from SharedWithOthers
Enhancement: Remove public links from SharedWithOthers page

We've removed links fromshared-with-others page.
We've removed links from the shared-with-others page as those belong in the `Shared via link` page (and already exist there).

https://github.com/owncloud/web/issues/5976
https://github.com/owncloud/web/pull/6612
https://github.com/owncloud/web/pull/6612
17 changes: 12 additions & 5 deletions packages/web-app-files/src/components/FilesList/ResourceTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<slot name="status" :resource="item" />
</template>
<template #sharedWith="{ item }">
<oc-button appearance="raw" @click="openSharingSidebar">
<oc-button appearance="raw" variation="inverse" @click="openSharingSidebar(item)">
<oc-avatars
class="resource-table-people"
:items="item.sharedWith"
Expand Down Expand Up @@ -104,7 +104,7 @@
/>
</template>
<template #owner="{ item }">
<oc-button appearance="raw" @click="openSharingSidebar">
<oc-button appearance="raw" variation="inverse" @click="openSharingSidebar(item)">
<oc-avatars
class="resource-table-people"
:items="item.owner"
Expand Down Expand Up @@ -159,6 +159,7 @@ import { EVENT_TROW_MOUNTED, EVENT_FILE_DROPPED } from '../../constants'
import { SortDir } from '../../composables'
import * as path from 'path'
import { determineSortFields } from '../../helpers/ui/resourceTable'
import { ShareTypes } from '../../helpers/share'
export default {
model: {
Expand Down Expand Up @@ -425,12 +426,14 @@ export default {
this.formatDateRelative(item.ddate) + ' (' + this.formatDate(item.ddate) + ')'
}
]
.filter((field) => Object.prototype.hasOwnProperty.call(firstResource, field.name))
.filter((field) => {
if (!Object.prototype.hasOwnProperty.call(firstResource, field.name)) {
return false
}
if (field.name !== 'indicators') {
return true
}
return firstResource.indicators.length > 0
return firstResource.indicators.length
})
.map((field) => {
const sortField = sortFields.find((f) => f.name === field.name)
Expand Down Expand Up @@ -483,7 +486,11 @@ export default {
},
methods: {
...mapActions('Files/sidebar', ['openWithPanel']),
openSharingSidebar() {
openSharingSidebar(file) {
if (file.shareTypes?.includes(ShareTypes.link.value)) {
this.openWithPanel('links-item')
return
}
this.openWithPanel('sharing-item')
},
folderLink(file) {
Expand Down

0 comments on commit 866ea60

Please sign in to comment.