Local friend import/export

This commit is contained in:
Natsumi
2026-02-18 13:48:23 +11:00
committed by pa
parent ec6d224d71
commit 4db9cd0392
6 changed files with 255 additions and 64 deletions
+19 -9
View File
@@ -1095,9 +1095,13 @@
.confirm({
description: `Are you sure you want to unfavorite ${total} favorites?
This action cannot be undone.`,
title: `Trash2 ${total} favorites?`
title: `Delete ${total} favorites?`
})
.then(({ ok }) => {
if (ok) {
bulkUnfavoriteSelectedWorlds([...selectedFavoriteWorlds.value]);
}
})
.then(() => bulkUnfavoriteSelectedWorlds([...selectedFavoriteWorlds.value]))
.catch(() => {});
}
@@ -1170,10 +1174,14 @@
function promptLocalWorldFavoriteGroupDelete(group) {
modalStore
.confirm({
description: `Trash2 Group? ${group}`,
description: `Delete Group? ${group}`,
title: 'Confirm'
})
.then(() => deleteLocalWorldFavoriteGroup(group))
.then(({ ok }) => {
if (ok) {
deleteLocalWorldFavoriteGroup(group);
}
})
.catch(() => {});
}
@@ -1183,11 +1191,13 @@
description: 'Continue? Clear Group',
title: 'Confirm'
})
.then(() => {
favoriteRequest.clearFavoriteGroup({
type: ctx.type,
group: ctx.name
});
.then(({ ok }) => {
if (ok) {
favoriteRequest.clearFavoriteGroup({
type: ctx.type,
group: ctx.name
});
}
})
.catch(() => {});
}