MaastrichtU-BISS / lawnotation

Legal text annotation platform for researchers, legal practioners and more!
https://lawnotation.org
Apache License 2.0
6 stars 1 forks source link

Fix loading assignments #22

Closed eensander closed 11 months ago

eensander commented 1 year ago

This pull-request solves the issue of the assignment-creation form being shown shortly before the data is loaded. For this, some changes are made which need verification, as well as some smaller fixes.

@carloseam94 I moved determination of totalAmountOfDocs from onMounted to setup and made them constant and removed the ref(...) wrapper. Secondly, it seems the variable total_docs is rather redundant. I left it in, but let me know.

@CvdL-UM For determining the totalAssignments number, I utilized the table-endpoint, since this will count the total number of entries on database-side, instead of fetching all instances and counting it in the front-end. As was the case with the above point, I also made it constant and removed the ref. I tested it and think it will suffice, but please verify.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lawnotation ✅ Ready (Inspect) Visit Preview Nov 28, 2023 2:17pm