mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 21:39:37 +02:00
feat: Add type change functionality to AdventureCard component
This commit is contained in:
parent
e093be31af
commit
fe05e5c6cf
4 changed files with 74 additions and 12 deletions
|
@ -83,6 +83,7 @@
|
|||
});
|
||||
if (res.ok) {
|
||||
console.log('Adventure type changed');
|
||||
dispatch('typeChange', adventure.id);
|
||||
addToast('info', 'Adventure type changed successfully!');
|
||||
adventure.type = newType;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue