add fetch entry collection + change to seen modals & improvements

This commit is contained in:
X4Lo committed 2024-09-10 01:19:17 +01:00
1 parent 776506b232
commit 41666cc6a3
7 files changed
+171 -82

No files matched your search

@@ -48,18 +48,22 @@ export class SeenModalComponent implements OnInit {
this.watchDate = formatDate(new Date(), 'yyyy-MM-dd', 'en-US');
} else {
// ? if data is passed, populate fields
this.watchDate = formatDate(new Date(this.data.watchDate), 'yyyy-MM-dd', 'en-US');
this.watchDate = formatDate(
new Date(this.data.watchDate),
'yyyy-MM-dd',
'en-US'
);
this.watchedWith = this.data.watchedWith.split(', ').join('\n');
}
flatpickr('#myDatepicker', {
inline: true,
defaultDate: this.watchDate,
altInput: true,
allowInput: false,
altFormat: 'F j, Y',
dateFormat: 'Y-m-d',
});
// flatpickr('#myDatepicker', {
// inline: true,
// defaultDate: this.watchDate,
// altInput: true,
// allowInput: false,
// altFormat: 'F j, Y',
// dateFormat: 'Y-m-d',
// });
}
onConfirm(): void {