mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-21 05:49:37 +02:00
Fix date handling in CollectionModal to set null values for missing start and end dates; update localization files to add new confirmation messages and labels.
This commit is contained in:
parent
697c40fca0
commit
7cf634def8
10 changed files with 301 additions and 113 deletions
|
@ -64,6 +64,11 @@
|
|||
collection.start_date = collection.end_date;
|
||||
}
|
||||
|
||||
if (!collection.start_date && !collection.end_date) {
|
||||
collection.start_date = null;
|
||||
collection.end_date = null;
|
||||
}
|
||||
|
||||
if (collection.id === '') {
|
||||
let res = await fetch('/api/collections', {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue