Closed dave-mills closed 1 year ago
I executed below commands, the Vue component not showed when assessing additional criteria...
==========
git checkout dev
git pull
==========
git checkout additional-criteria-view
git pull
npm run dev
==========
composer install
npm install
npm run dev
Screen shots:
Assess Red Flags and Assess Principles are working fine
Access Additional Criteria, the Vue component not showed...
I've updated this PR so the vue component should now render, and made a few additional tweaks to fix some issues with the save / finalise workflow.
Um.... for additional criteria assessment, should we have a different title and description?
As I have only one additional assessment criteria in my local env, I would like to add some more for testing.
When I add / edit additional assessment criteria, below error occurred...
When I add / edit additional assessment criteria, below error occurred...
Fixed in the latest commit. The issue was with my change in relationship name. (I made the AdditionalCriteria->scoreTags()
name match the AssessmentPrinciple
class so we could use the same name in the Vue component. I'd found all the main references, but PHPStorm didn't find the one hidden in the string name of the CRUD field).
Thank you Dave.
The Add / Edit additional criteria links work well now. I have added a new additioanl criteria successfully.
Just one minor issue about "Discard Changes" button. It updates the value in front end. When I refresh browser, the correct value showed. (The same issue happens for principle assessment...)
Screen shots FYI:
Assess criteria, score is 1 now
Showing scroe as 1
Change score from 1 to 2, click Discard Changes button
Score is showed as 2 in front end
Refresh browser, score is showed as 1
Just one minor issue about "Discard Changes" button. It updates the value in front end.
I believe this issue is fixed in #134, so I wouldn't worry about it here.
This PR generalises the PrincipleAssessment vue components to also work with the Additional Criteria Assessment.
There are some things pending, so I'm calling this a draft PR. @dan-tang-ssd can you take a look at these?