05/29 Fix shared items aren't displayed on user page
This commit is contained in:
@@ -1931,6 +1931,11 @@ const Vault = (() => {
|
|||||||
'<li class="vault-empty">No items have been shared with you.</li>';
|
'<li class="vault-empty">No items have been shared with you.</li>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Auto-switch to "Shared with me" tab when there are pending shares so the
|
||||||
|
// recipient doesn't miss them (the default active tab is "Shared by me").
|
||||||
|
if (shares.some((s) => !s.accepted)) {
|
||||||
|
document.querySelector('.tab-btn[data-tab="shared-in"]')?.click();
|
||||||
|
}
|
||||||
ul.innerHTML = shares
|
ul.innerHTML = shares
|
||||||
.map(
|
.map(
|
||||||
(s) => {
|
(s) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user