project-booster-vue 9.13.0 → 9.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "9.13.0",
3
+ "version": "9.13.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -113,21 +113,11 @@ import DOCUMENT_UPLOAD_PAYLOAD from '../../media/upload/document-upload-payload.
113
113
  if (store.getters['estimates/getCurrentProjectId'] !== projectId) {
114
114
  store.dispatch('estimates/loadEstimates', projectId);
115
115
  }
116
- if (store.getters['media/getCurrentProjectId'] !== projectId) {
117
- store.dispatch('media/loadMedia', projectId);
118
- }
119
- if (store.getters['documents/getCurrentProjectId'] !== projectId) {
120
- store.dispatch('documents/loadMedia', projectId);
121
- }
122
116
  if (store.getters['projects/getCurrentProjectId'] !== projectId) {
123
117
  await store.dispatch('projects/loadProject', projectId);
124
118
  store.dispatch('projects/loadAppointment');
125
119
  store.dispatch('projects/loadProjectAttributes');
126
120
  }
127
- const projectType = store.getters['projects/getProject']?.projectType?.href?.split('/')[2];
128
- if (store.getters['tools/getCurrentProjectType'] !== projectType) {
129
- store.dispatch('tools/loadTools', projectType);
130
- }
131
121
  next();
132
122
  },
133
123
  },
@@ -259,7 +259,7 @@
259
259
  (isLoadingConfigurations || configurations.length > 0 || !!configurationsLoadError) &&
260
260
  !isLoadingTools &&
261
261
  (tools || readOnly) &&
262
- configurators.length !== 0
262
+ (configurators.length !== 0 || readOnly)
263
263
  ),
264
264
  }"
265
265
  direction="column"
@@ -25,9 +25,10 @@ const getAppointmentQualification = async (
25
25
  groupId: string,
26
26
  appointmentId: string,
27
27
  ) => {
28
- const url = inhabitantProjectId
29
- ? `/appointment-qualifications?range=${start}-${end}&inhabitantProjectId=${inhabitantProjectId}`
30
- : `/appointment-qualifications?range=${start}-${end}&groupId=${groupId}&appointmentId=${appointmentId}`;
28
+ let url = `/appointment-qualifications?range=${start}-${end}&groupId=${groupId}&appointmentId=${appointmentId}`;
29
+ if (inhabitantProjectId) {
30
+ url += `&inhabitantProjectId=${inhabitantProjectId}`;
31
+ }
31
32
  const response = await clientApi.get(url);
32
33
 
33
34
  return response.data;
@@ -69,7 +70,7 @@ const declarationsWithoutAppointment = async (data: any) => {
69
70
  );
70
71
  };
71
72
 
72
- const linkInhabitantProjectToAppointmentQualification = async (data: any, inhabitantProjectId: any) => {
73
+ const linkInhabitantProjectToAppointmentQualification = async (data: any, inhabitantProjectId: string) => {
73
74
  const response = await clientApi.post(
74
75
  `/inhabitant-projects/${inhabitantProjectId}/appointment-qualifications`,
75
76
  data,
@@ -178,7 +178,7 @@ export default {
178
178
  },
179
179
  correlationId: state.sessions.correlationId,
180
180
  };
181
- const result = await linkInhabitantProjectToAppointmentQualification(state.sessions.inhabitantProjectId, data);
181
+ const result = await linkInhabitantProjectToAppointmentQualification(data, state.sessions.inhabitantProjectId);
182
182
  commit('setCurrentAppointmentQualification', result);
183
183
  commit('setIsLoadingProject', false);
184
184
  } catch (e) {