-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathSharesPanel.vue
40 lines (37 loc) · 1.09 KB
/
SharesPanel.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<div>
<oc-loader v-if="sharesLoading" :aria-label="$gettext('Loading list of shares')" />
<template v-else>
<space-members v-if="showSpaceMembers" class="oc-background-highlight oc-p-m oc-mb-s" />
<file-shares v-else class="oc-background-highlight oc-p-m oc-mb-s" />
<file-links v-if="showLinks" class="oc-background-highlight oc-p-m" />
</template>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import FileLinks from './FileLinks.vue'
import FileShares from './FileShares.vue'
import SpaceMembers from './SpaceMembers.vue'
import { useSharesStore } from '@ownclouders/web-pkg'
import { storeToRefs } from 'pinia'
export default defineComponent({
name: 'SharesPanel',
components: {
FileLinks,
FileShares,
SpaceMembers
},
props: {
showSpaceMembers: { type: Boolean, default: false },
showLinks: { type: Boolean, default: false }
},
setup() {
const sharesStore = useSharesStore()
const { loading: sharesLoading } = storeToRefs(sharesStore)
return {
sharesLoading
}
}
})
</script>