Skip to content

Commit

Permalink
Move OcStatusIndicators in seperate column
Browse files Browse the repository at this point in the history
Add changelog

Add changelog

Update changelog
  • Loading branch information
lookacat committed Mar 9, 2022
1 parent bb612cf commit a2f15e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changelog/unreleased/enhancement-move-share-indicators
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Enhancement: Move share indicators

We've moved the share/status indicators into a separate column
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
16 changes: 16 additions & 0 deletions packages/web-app-files/src/components/FilesList/ResourceTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@
v-text="formatDateRelative(item.mdate)"
/>
</template>
<template #shareTypes="{ item }">
<oc-status-indicators
v-if="item.indicators.length"
:resource="item"
:indicators="item.indicators"
></oc-status-indicators>
</template>
<template #sdate="{ item }">
<span
v-oc-tooltip="formatDate(item.sdate)"
Expand Down Expand Up @@ -394,6 +401,8 @@ export default {
})
}
const sortFields = determineSortFields(firstResource)
console.log('FIRST RESOURCE')
console.log(firstResource)
fields.push(
...[
{
Expand All @@ -403,6 +412,13 @@ export default {
width: 'expand',
wrap: 'truncate'
},
{
name: 'shareTypes',
title: this.$gettext('Shares'), // How do we get the translations here?
type: 'slot',
alignH: 'right',
wrap: 'nowrap'
},
{
name: 'size',
title: this.$gettext('Size'),
Expand Down

0 comments on commit a2f15e1

Please sign in to comment.