Skip to content

Commit 1582985

Browse files
committed
Do not render link list or 'No shares' message if resharing is not allowed
1 parent 91f75a8 commit 1582985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/SharingTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
:shares="linkShares"
5454
@open-sharing-details="toggleShareDetailsView" />
5555

56-
<p v-if="!loading && shares.length === 0 && linkShares.length === 0">
56+
<p v-if="!loading && shares.length === 0 && linkShares.length === 0 && canReshare">
5757
{{ t('nmcsharing', 'No shares created yet.') }}
5858
</p>
5959

6060
<!-- other shares list -->
61-
<SharingList v-if="!loading"
61+
<SharingList v-if="!loading && canReshare"
6262
ref="shareList"
6363
:shares="shares"
6464
:file-info="fileInfo"

0 commit comments

Comments
 (0)