GroceriStar/calendar

One Modal window to rule em all

Opened this issue · 0 comments

Right now each event has it's own generated and hidden modal that appears at our homepage.
And when you click on link(related to event A) you see an opened ModalA.

I want to have one modal only. And when you click on link,

  • you read an id of that element
  • you pass that id where it need to be passed
  • you get a data that you need
  • display that data in blank modal

So modal will have a 2 states: opened(with data from some of recipes), closed(without data, because no id was passed to constructor)