mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
Enhance unlinked state logic for checklists and notes; update button layout in modals
This commit is contained in:
parent
df2ce01910
commit
8f7551f4be
6 changed files with 7 additions and 9 deletions
|
@ -30,7 +30,7 @@
|
|||
collection.start_date > checklist.date &&
|
||||
collection.end_date > checklist.date;
|
||||
|
||||
unlinked = !!(startOutsideRange || endOutsideRange);
|
||||
unlinked = !!(startOutsideRange || endOutsideRange || !checklist.date);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -293,10 +293,9 @@
|
|||
{/if}
|
||||
|
||||
<div class="mt-4">
|
||||
<button class="btn btn-neutral" on:click={close}>{$t('about.close')}</button>
|
||||
<button class="btn btn-primary mr-1" disabled={isReadOnly} on:click={save}
|
||||
>{$t('notes.save')}</button
|
||||
>
|
||||
><button class="btn btn-neutral" on:click={close}>{$t('about.close')}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
const endOutsideRange =
|
||||
note.date && collection.start_date > note.date && collection.end_date > note.date;
|
||||
|
||||
unlinked = !!(startOutsideRange || endOutsideRange);
|
||||
unlinked = !!(startOutsideRange || endOutsideRange || !note.date);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -288,11 +288,10 @@
|
|||
|
||||
<!-- Action Buttons -->
|
||||
<div class="mt-4">
|
||||
<button class="btn btn-neutral" on:click={close}>
|
||||
{$t('about.close')}
|
||||
</button>
|
||||
<button class="btn btn-primary mr-1" disabled={isReadOnly} on:click={save}>
|
||||
{$t('notes.save')}
|
||||
</button><button class="btn btn-neutral" on:click={close}>
|
||||
{$t('about.close')}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -589,7 +589,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
|
|||
<!-- Form Actions -->
|
||||
<div class="mt-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{$t('adventures.save_next')}
|
||||
{$t('notes.save')}
|
||||
</button>
|
||||
<button type="button" class="btn" on:click={close}>
|
||||
{$t('about.close')}
|
||||
|
|
|
@ -426,7 +426,7 @@
|
|||
{/if}
|
||||
|
||||
{#if collection.description}
|
||||
<div class="flex justify-center mt-4">
|
||||
<div class="flex justify-center mt-4 max-w-screen-lg mx-auto">
|
||||
<article
|
||||
class="prose overflow-auto max-h-96 max-w-full p-4 border border-base-300 rounded-lg bg-base-300 mb-4"
|
||||
style="overflow-y: auto;"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue