Skip to content

Commit 614b7d3

Browse files
ndg63276Mark Williams
andauthored
LIMS-2152: Remove notifications on load of beamline status page (#1061)
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
1 parent c4b9fca commit 614b7d3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

client/src/js/app/store/store.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ const store = new Vuex.Store({
285285
url: app.apiurl + url,
286286
type: 'POST',
287287
data,
288-
...others,
289-
290288
success: function(response) {
291289
commit('notifications/addNotification', {
292290
title: 'Action Successful',
@@ -306,6 +304,7 @@ const store = new Vuex.Store({
306304
root: true
307305
})
308306
},
307+
...others,
309308
})
310309
},
311310
// update data to the backend that is not attached to any model
@@ -315,8 +314,6 @@ const store = new Vuex.Store({
315314
url: app.apiurl + url,
316315
type,
317316
data,
318-
...others,
319-
320317
success: function(response) {
321318
commit('notifications/addNotification', {
322319
title: 'Update Successful',
@@ -336,6 +333,7 @@ const store = new Vuex.Store({
336333
root: true
337334
})
338335
},
336+
...others,
339337
})
340338
},
341339
// delete data from the backend that is not attached to any model

client/src/js/modules/status/views/beamline-status-view.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export default {
222222
fetchCamToken(data) {
223223
return this.$store.dispatch('saveDataToApi', {
224224
url: `/download/sign`,
225+
success: (response) => response,
225226
data
226227
})
227228
},

0 commit comments

Comments
 (0)