mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 21:39:37 +02:00
chore: Update CollectionCard component to display correct toast message when archiving/unarchiving a collection
This commit is contained in:
parent
14e4a5c86d
commit
879b182e56
2 changed files with 23 additions and 3 deletions
|
@ -37,10 +37,10 @@
|
|||
});
|
||||
if (res.ok) {
|
||||
console.log(`Collection ${is_archived ? 'archived' : 'unarchived'}`);
|
||||
addToast('info', `Adventure ${is_archived ? 'archived' : 'unarchived'} successfully!`);
|
||||
addToast('info', `Collection ${is_archived ? 'archived' : 'unarchived'} successfully!`);
|
||||
dispatch('delete', collection.id);
|
||||
} else {
|
||||
console.log('Error archiving adventure');
|
||||
console.log('Error archiving collection');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue