This pull request introduces a utility function to handle explanations and updates the codebase to use this new function. The main changes involve importing the displayExplanation function and updating various components to use it for generating explanations.
This pull request introduces a utility function to handle explanations and updates the codebase to use this new function. The main changes involve importing the
displayExplanation
function and updating various components to use it for generating explanations.Introduction of Utility Function
src/components/list/editListActionButtons.vue
: ImporteddisplayExplanation
from../utils/commons
and updated the text generation logic to use this function for various fields. [1] [2] [3] [4] [5]Component Updates
src/components/list/editListEvidenceProfile.vue
:displayExplanation
and updated the explanation text generation logic to use this function. [1] [2] [3] [4] [5]src/components/project/actionButtons.vue
: ImporteddisplayExplanation
and updated the explanation text generation logic to use this function for various fields. [1] [2]These changes improve the consistency and maintainability of the code by centralizing the logic for generating explanations.