This pull request includes several changes to improve the handling of company data storage and navigation in the application. The most important changes include refactoring the logic for determining base route names, updating the company data storage handler, and modifying functions to be asynchronous.
This pull request includes several changes to improve the handling of company data storage and navigation in the application. The most important changes include refactoring the logic for determining base route names, updating the company data storage handler, and modifying functions to be asynchronous.
Refactoring and code improvements:
apps/web/src/components/element/TeeDsfrBreadcrumb.vue
: Refactored thegetBaseRouteName
function to use aswitch
statement for better readability and maintainability.Updates to company data storage:
apps/web/src/components/identification/TeeRegisterModal.vue
: Added import forCompanyDataStorageHandler
and updated theresetSiret
function to callupdateRouteFromStorage
. [1] [2]apps/web/src/components/identification/details/TeeProfileDetails.vue
: Updated thesaveProfile
function to useCompanyDataStorageHandler.saveCompanyDataToStorage
and callupdateRouteFromStorage
after saving data. [1] [2] [3]Enhancements to company data storage handler:
apps/web/src/utils/storage/companyDataStorageHandler.ts
: AddedsaveCompanyDataToStorage
andupdateRouteFromStorage
methods to theCompanyDataStorageHandler
class to handle saving data and updating the navigation state. [1] [2]