advweb-grp1 / advanced-web-final-year-project

Final year advanced web develop unit project
MIT License
1 stars 0 forks source link

Feature/data grid #53

Closed rwx-yxu closed 1 year ago

rwx-yxu commented 1 year ago

Display data page which outputs the full data grid along with an actions header which contains a delete button. The delete button should only be present if the user has created the data.

github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit fabca70):

https://adv-web-grp1--pr53-feature-data-grid-0vvdno0e.web.app

(expires Tue, 02 May 2023 20:56:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e45f8bd17b7de44787580bea572e36aa09784b8c

rwx-yxu commented 1 year ago

I am still missing a confirmation modal before just allowing the delete to happen.

rwx-yxu commented 1 year ago

We do have a model component but it is just a template. No actions. Nothing to check what has been clicked.

rwx-yxu commented 1 year ago

Solution is to create a slot for the modal component actions. This means that you can attach a function on the button being defined for the modal actions slot. The default remains so it does not impact the existing use cases.