1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 07:49:37 +02:00

Merge pull request #175 from seanmorley15/development

Fixes
This commit is contained in:
Sean Morley 2024-08-07 16:34:20 -04:00 committed by GitHub
commit 14e4a5c86d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

5
deploy.sh Normal file
View file

@ -0,0 +1,5 @@
echo "Deploying latest version of AdventureLog"
docker compose pull
echo "Stating containers"
docker compose up -d
echo "All set!"

View file

@ -55,10 +55,10 @@
});
if (res.ok) {
console.log('Collection deleted');
addToast('info', 'Adventure deleted successfully!');
addToast('info', 'Collection deleted successfully!');
dispatch('delete', collection.id);
} else {
console.log('Error deleting adventure');
console.log('Error deleting collection');
}
}

View file

@ -38,7 +38,9 @@
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
<h3 class="font-bold text-lg">{title}</h3>
<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>
</div>
</dialog>