Skip to content

Commit f8cc6ab

Browse files
committed
last set cleanup
Signed-off-by: RAWx18 <rawx18.dev@gmail.com>
1 parent 082727f commit f8cc6ab

File tree

7 files changed

+25
-90
lines changed

7 files changed

+25
-90
lines changed

frontend/src/modules/signals/pages/SignalsPageWrapper.vue

Lines changed: 0 additions & 24 deletions
This file was deleted.

frontend/src/modules/signals/store/actions.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,20 @@ export default {
360360

361361
async doUpdateSettings(
362362
{ commit, dispatch },
363-
{ data, fetchNewResults = true },
363+
{ data, fetchNewResults = true, isSentinel = false },
364364
) {
365+
console.log('🔵 Store action: doUpdateSettings called');
366+
console.log(' - isSentinel:', isSentinel);
367+
console.log(' - data:', data);
368+
365369
commit('UPDATE_SIGNALS_SETTINGS_STARTED');
366-
return SignalsService.updateSettings(data)
370+
return SignalsService.updateSettings(data, isSentinel)
367371
.then(() => {
372+
console.log('🔵 Store action: updateSettings success, refreshing user...');
368373
dispatch('auth/doRefreshCurrentUser', null, {
369374
root: true,
370375
}).then(() => {
376+
console.log('🔵 Store action: user refreshed, committing success');
371377
commit('UPDATE_SIGNALS_SETTINGS_SUCCESS');
372378

373379
if (fetchNewResults) {
@@ -379,6 +385,7 @@ export default {
379385
});
380386
})
381387
.catch((error) => {
388+
console.error('❌ Store action: updateSettings error:', error);
382389
Errors.handle(error);
383390
commit('UPDATE_SIGNALS_SETTINGS_ERROR');
384391
return Promise.reject();

frontend/src/modules/signals/utils/index.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

frontend/src/modules/signals/utils/signalsFormatters.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/src/modules/signals/utils/signalsHelpers.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/src/modules/signals/utils/signalsValidators.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/src/shared/signals/services/SignalsService.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,28 @@ export class SignalsService {
9393
return response.data;
9494
}
9595

96-
static async updateSettings(data) {
96+
static async updateSettings(data, isSentinel = false) {
9797
const tenantId = AuthCurrentTenant.get();
9898

99+
const endpoint = `/tenant/${tenantId}/signalsContent/settings`;
100+
101+
// Use axios params for query parameters
102+
const config = isSentinel ? { params: { feature: 'sentinel' } } : {};
103+
104+
console.log('🚀 SignalsService.updateSettings called');
105+
console.log(' - isSentinel:', isSentinel);
106+
console.log(' - config.params:', config.params);
107+
console.log(' - endpoint:', endpoint);
108+
console.log(' - data:', data);
109+
99110
const response = await authAxios.put(
100-
`/tenant/${tenantId}/signalsContent/settings`,
111+
endpoint,
101112
data,
113+
config,
102114
);
103115

116+
console.log('✅ SignalsService.updateSettings response:', response.data);
117+
104118
return response.data;
105119
}
106120
}

0 commit comments

Comments
 (0)