fix(ui): update shared badge on change
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user