05/29 Update shared items displayed on Grantee items 2
This commit is contained in:
@@ -563,9 +563,7 @@ const Vault = (() => {
|
||||
_activeFilter = { type: "tag", value: tag };
|
||||
switchView("vault");
|
||||
updateVaultTitle("#" + tag);
|
||||
renderItemList(
|
||||
_items.filter((i) => (i.plain?.tags || []).includes(tag)),
|
||||
);
|
||||
applyCurrentFilter();
|
||||
});
|
||||
ul.appendChild(li);
|
||||
});
|
||||
@@ -4671,7 +4669,7 @@ const Vault = (() => {
|
||||
.forEach((el) => el.classList.remove("active"));
|
||||
document.getElementById("sidebar-all").classList.add("active");
|
||||
updateVaultTitle("All Items");
|
||||
renderItemList(_items);
|
||||
applyCurrentFilter();
|
||||
});
|
||||
document.getElementById("sidebar-favorites")?.addEventListener("click", () => {
|
||||
_activeFilter = { type: "tag", value: "favorite" };
|
||||
@@ -4681,7 +4679,7 @@ const Vault = (() => {
|
||||
.forEach((el) => el.classList.remove("active"));
|
||||
document.getElementById("sidebar-favorites").classList.add("active");
|
||||
updateVaultTitle("⭐ Favorites");
|
||||
renderItemList(_items.filter((i) => (i.plain?.tags || []).includes("favorite")));
|
||||
applyCurrentFilter();
|
||||
});
|
||||
document
|
||||
.getElementById("sidebar-security")
|
||||
@@ -4718,7 +4716,7 @@ const Vault = (() => {
|
||||
.forEach((s) => s.classList.remove("active"));
|
||||
el.classList.add("active");
|
||||
updateVaultTitle(labels[type] || type);
|
||||
renderItemList(_items.filter((i) => i.item_type === type));
|
||||
applyCurrentFilter();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user