fix(ui): update shared badge on change

This commit is contained in:
Edouard Vanbelle
2026-04-20 23:40:22 +02:00
parent 1d8da579cc
commit 1fd92f9efa
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -909,6 +909,7 @@ const contextMenus = {
btn.closest('.existing-share-item').remove();
if (existingSharesContainer.children.length === 0) {
document.getElementById('existing-shares-section').classList.add('hidden');
ui.setSharedVisualState(item.id, item.type, false);
}
}
});
@@ -992,6 +993,9 @@ const contextMenus = {
shareUrl.select();
}
// Update Item's shared badge
ui.setSharedVisualState(item.id, item.type, true);
// Show success message
ui.showNotification(
i18n ? i18n.t('notifications.link_created') : 'Link created',