add fetch entry collection + change to seen modals & improvements
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user