Fixes
This commit is contained in:
5
deploy.sh
Normal file
5
deploy.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
echo "Deploying latest version of AdventureLog"
|
||||||
|
docker compose pull
|
||||||
|
echo "Stating containers"
|
||||||
|
docker compose up -d
|
||||||
|
echo "All set!"
|
||||||
@@ -55,10 +55,10 @@
|
|||||||
});
|
});
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
console.log('Collection deleted');
|
console.log('Collection deleted');
|
||||||
addToast('info', 'Adventure deleted successfully!');
|
addToast('info', 'Collection deleted successfully!');
|
||||||
dispatch('delete', collection.id);
|
dispatch('delete', collection.id);
|
||||||
} else {
|
} else {
|
||||||
console.log('Error deleting adventure');
|
console.log('Error deleting collection');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,9 @@
|
|||||||
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
|
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
|
||||||
<h3 class="font-bold text-lg">{title}</h3>
|
<h3 class="font-bold text-lg">{title}</h3>
|
||||||
<p class="py-1 mb-4">{description}</p>
|
<p class="py-1 mb-4">{description}</p>
|
||||||
<button class="btn btn-warning mr-2" on:click={confirm}>{button_text}</button>
|
<button class="btn btn-{is_warning ? 'warning' : 'primary'} mr-2" on:click={confirm}
|
||||||
|
>{button_text}</button
|
||||||
|
>
|
||||||
<button class="btn btn-neutral" on:click={close}>Cancel</button>
|
<button class="btn btn-neutral" on:click={close}>Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user