Closed borakrc closed 7 years ago
to not saving the camera photo to the gallery, we can use Camera.getPicture({saveToPhotoAlbum: false})
option when taking photo on the front end.
structure in the db will be: classes/[classId]/weeklyMenu/[randomarraykey] = { photoUrl: [url], date: [date] }
it's not classes/[classId]/weeklyMenu/date = url because we might want to query & sort date.
just realized a bug. when deleting a photo for a date, querying by date and removing causes all list to be removed, not just the query result. so,
structure in the db is: classes/[classId]/weeklyMenu/date = url
it's not: classes/[classId]/weeklyMenu/[randomarraykey] = { photoUrl: [url], date: [date] }
because querying by date and removing the result requires more work.
the feature won't be embedded on the page. there should be a link that goes to weekly-menu-page.
it shows cafeteria menu. more details will be added from pdf documentation.
I already implemented some photo related features, so it will not be from scratch development.