Skip to content

Commit

Permalink
Merge pull request #7889 from owncloud/hide-indicators-on-public-links
Browse files Browse the repository at this point in the history
Hide share indicators on public page
  • Loading branch information
JammingBen authored Oct 28, 2022
2 parents 3b34cc1 + cbdacae commit 4a24e33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Hide share indicators on public page

Share indicators are now being hidden on public link pages.

https://github.com/owncloud/web/pull/7889
https://github.com/owncloud/web/issues/7888
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<oc-resource-icon class="details-icon" :resource="file" size="xxxlarge" />
</div>
<div
v-if="shareIndicators.length"
v-if="!isPublicLinkContext && shareIndicators.length"
key="file-shares"
data-testid="sharingInfo"
class="oc-flex oc-flex-middle oc-my-m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ exports[`Details SideBar Panel displays a resource of type file on a public page
<div data-testid="preview" class="details-preview oc-flex oc-flex-middle oc-flex-center oc-mb" style="background-image: none;">
<oc-spinner-stub></oc-spinner-stub>
</div>
<div data-testid="sharingInfo" class="oc-flex oc-flex-middle oc-my-m">
<oc-status-indicators-stub resource="[object Object]" indicators="[object Object]"></oc-status-indicators-stub>
<p class="oc-my-rm oc-mx-s">This file has been shared.</p>
</div>
<!---->
<table aria-label="Overview of the information about the selected file" class="details-table">
<tr data-testid="timestamp">
<th scope="col" class="oc-pr-s">Last modified</th>
Expand Down Expand Up @@ -265,10 +262,7 @@ exports[`Details SideBar Panel displays a resource of type file on a public page
<div data-testid="preview" class="details-preview oc-flex oc-flex-middle oc-flex-center oc-mb" style="background-image: none;">
<oc-spinner-stub></oc-spinner-stub>
</div>
<div data-testid="sharingInfo" class="oc-flex oc-flex-middle oc-my-m">
<oc-status-indicators-stub resource="[object Object]" indicators="[object Object]"></oc-status-indicators-stub>
<p class="oc-my-rm oc-mx-s">This file has been shared.</p>
</div>
<!---->
<table aria-label="Overview of the information about the selected file" class="details-table">
<tr data-testid="timestamp">
<th scope="col" class="oc-pr-s">Last modified</th>
Expand Down Expand Up @@ -458,10 +452,7 @@ exports[`Details SideBar Panel displays a resource of type folder on a public pa
<div class="details-icon-wrapper oc-width-1-1 oc-flex oc-flex-middle oc-flex-center oc-mb">
<oc-resource-icon-stub resource="[object Object]" size="xxxlarge" class="details-icon"></oc-resource-icon-stub>
</div>
<div data-testid="sharingInfo" class="oc-flex oc-flex-middle oc-my-m">
<oc-status-indicators-stub resource="[object Object]" indicators="[object Object]"></oc-status-indicators-stub>
<p class="oc-my-rm oc-mx-s">This folder has been shared.</p>
</div>
<!---->
<table aria-label="Overview of the information about the selected file" class="details-table">
<tr data-testid="timestamp">
<th scope="col" class="oc-pr-s">Last modified</th>
Expand Down Expand Up @@ -497,10 +488,7 @@ exports[`Details SideBar Panel displays a resource of type folder on a public pa
<div class="details-icon-wrapper oc-width-1-1 oc-flex oc-flex-middle oc-flex-center oc-mb">
<oc-resource-icon-stub resource="[object Object]" size="xxxlarge" class="details-icon"></oc-resource-icon-stub>
</div>
<div data-testid="sharingInfo" class="oc-flex oc-flex-middle oc-my-m">
<oc-status-indicators-stub resource="[object Object]" indicators="[object Object]"></oc-status-indicators-stub>
<p class="oc-my-rm oc-mx-s">This folder has been shared.</p>
</div>
<!---->
<table aria-label="Overview of the information about the selected file" class="details-table">
<tr data-testid="timestamp">
<th scope="col" class="oc-pr-s">Last modified</th>
Expand Down

0 comments on commit 4a24e33

Please sign in to comment.