mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 13:29:37 +02:00
feat: Add country name to region page
This commit is contained in:
parent
597e56ea62
commit
bb1f2d92cf
8 changed files with 76 additions and 13 deletions
|
@ -10,8 +10,6 @@
|
|||
|
||||
export let visit_id: number | undefined | null;
|
||||
|
||||
console.log(visit_id);
|
||||
|
||||
async function markVisited() {
|
||||
let res = await fetch(`/worldtravel?/markVisited`, {
|
||||
method: 'POST',
|
||||
|
@ -47,6 +45,7 @@
|
|||
if (res.ok) {
|
||||
visited = false;
|
||||
addToast('info', `Visit to ${region.name} removed`);
|
||||
dispatch('remove', null);
|
||||
} else {
|
||||
console.error('Failed to remove visit');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue