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.
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 theref(...)
wrapper. Secondly, it seems the variabletotal_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 theref
. I tested it and think it will suffice, but please verify.