project-booster-vue 9.19.5 → 9.19.6

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.19.5",
3
+ "version": "9.19.6",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -70,7 +70,7 @@ export const TemplateSandbox = (args, { argTypes }) => {
70
70
  sourceDetail: 'Appointment_email',
71
71
  });
72
72
  store.dispatch('appointmentQualification/checkAppointmentQualification', {});
73
- store.dispatch('configurations/loadConfigurations', '001');
73
+ store.dispatch('configurations/loadConfigurations', { projectId: '001' });
74
74
  store.dispatch('configurations/defineConfiguratorTypes', [DEFAULT_PAYLOAD.__START__.meta.configuratorType]);
75
75
  store.dispatch('configurations/searchConfigurations', '001');
76
76
  return { args };
@@ -30,7 +30,7 @@ import {
30
30
  component: PbConfigurationsSection,
31
31
  beforeEnter: async (to, from, next, store) => {
32
32
  await store.dispatch('projects/loaProject', '001');
33
- await store.dispatch('configurations/loadConfigurations', '123_project_id');
33
+ await store.dispatch('configurations/loadConfigurations', { projectId: '123_project_id' });
34
34
  next();
35
35
  },
36
36
  },
@@ -107,7 +107,7 @@ import DOCUMENT_UPLOAD_PAYLOAD from '../../media/upload/document-upload-payload.
107
107
  store.dispatch('tasks/loadPlanner', { projectId, buId: 'bu-dev-planner' });
108
108
  }
109
109
  if (store.getters['configurations/getCurrentProjectId'] !== projectId) {
110
- store.dispatch('configurations/loadConfigurations', projectId);
110
+ store.dispatch('configurations/loadConfigurations', { projectId: projectId, forceNoPriceUpdate: true });
111
111
  store.dispatch('configurations/searchConfigurations', projectId);
112
112
  }
113
113
  if (store.getters['estimates/getCurrentProjectId'] !== projectId) {
@@ -31,7 +31,7 @@ import {
31
31
  beforeEnter: async (to, from, next, store) => {
32
32
  store.dispatch('projects/loadProject', '001');
33
33
  store.dispatch('tools/loadTools', '20181');
34
- store.dispatch('configurations/loadConfigurations', '001');
34
+ store.dispatch('configurations/loadConfigurations', { projectId: '001' });
35
35
  store.dispatch('configurations/searchConfigurations', '001');
36
36
  next();
37
37
  },
@@ -90,7 +90,7 @@ import DOCUMENT_UPLOAD_PAYLOAD from '../../media/upload/document-upload-payload.
90
90
  store.dispatch('tasks/loadPlanner', { projectId, buId: 'bu-dev-planner' });
91
91
  }
92
92
  if (store.getters['configurations/getCurrentProjectId'] !== projectId) {
93
- store.dispatch('configurations/loadConfigurations', projectId);
93
+ store.dispatch('configurations/loadConfigurations', { projectId: projectId });
94
94
  store.dispatch('configurations/searchConfigurations', projectId);
95
95
  }
96
96
  if (store.getters['estimates/getCurrentProjectId'] !== projectId) {
@@ -75,7 +75,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
75
75
  setup() {
76
76
  const store = useStore();
77
77
  store.dispatch('projects/loadProject', '001');
78
- store.dispatch('configurations/loadConfigurations', '001');
78
+ store.dispatch('configurations/loadConfigurations', { projectId: '001' });
79
79
  store.dispatch('configurations/searchConfigurations', '001');
80
80
  return { args };
81
81
  },
@@ -287,7 +287,7 @@ export default defineComponent({
287
287
  };
288
288
 
289
289
  const emitRefreshConfigurationEvent = () => {
290
- store.dispatch('configurations/loadConfigurations', projectId.value);
290
+ store.dispatch('configurations/loadConfigurations', { projectId: projectId.value });
291
291
  };
292
292
 
293
293
  const skipQuestion = (button: ConfigurationsImportSkippable) => {
@@ -65,7 +65,7 @@ export const TemplateSandbox = (args, { argTypes }) => {
65
65
  store.dispatch('documentsPlans/updateContext', { type: 'DOCUMENT', subType: 'PLAN' });
66
66
  store.dispatch('documentsPictures/updateContext', { type: 'DOCUMENT', subType: 'PHOTO' });
67
67
  store.dispatch('projects/loadProject', '001');
68
- store.dispatch('configurations/loadConfigurations', '001');
68
+ store.dispatch('configurations/loadConfigurations', { projectId: '001' });
69
69
  store.dispatch('configurations/defineConfiguratorTypes', [DEFAULT_PAYLOAD.__START__.meta.configuratorType]);
70
70
  store.dispatch('configurations/searchConfigurations', '001');
71
71
  store.dispatch('inhabitants/loadInhabitant', '123456');
@@ -87,10 +87,16 @@ export const configurationsListStoreOptions = {
87
87
 
88
88
  actions: {
89
89
  async refreshConfigurations({ dispatch, state }: ConfigurationsContext) {
90
- dispatch('loadConfigurations', state.currentProjectId);
90
+ dispatch('loadConfigurations', {
91
+ projectId: state.currentProjectId,
92
+ forceNoPriceUpdate: state.forceNoPriceUpdate,
93
+ });
91
94
  },
92
95
 
93
- async loadConfigurations({ commit, state }: ConfigurationsContext, projectId: string) {
96
+ async loadConfigurations(
97
+ { commit, state }: ConfigurationsContext,
98
+ { projectId, forceNoPriceUpdate = false }: { projectId: string; forceNoPriceUpdate: boolean },
99
+ ) {
94
100
  commit('setIsDisplayed', true);
95
101
 
96
102
  if (!state.isLoadingConfigurations && projectId) {
@@ -98,6 +104,7 @@ export const configurationsListStoreOptions = {
98
104
  commit('setIsLoadingConfigurations', true);
99
105
  commit('setConfigurations', []);
100
106
  commit('setConfigurationsLoadError', null);
107
+ commit('setForceNoPriceUpdate', forceNoPriceUpdate);
101
108
 
102
109
  try {
103
110
  const configurations = await getAllProjectConfigurations(projectId, state.forceNoPriceUpdate);
@@ -177,7 +184,10 @@ export const configurationsImportStoreOptions = {
177
184
  try {
178
185
  await linkConfiguration(state.configurationToImport.simulationId, state.currentProjectId);
179
186
  commit('setConfigurationImportSuccess', true);
180
- dispatch('loadConfigurations', state.currentProjectId);
187
+ dispatch('loadConfigurations', {
188
+ projectId: state.currentProjectId,
189
+ forceNoPriceUpdate: state.forceNoPriceUpdate,
190
+ });
181
191
 
182
192
  setTimeout(() => {
183
193
  commit('setConfigurationImportSuccess', false);