From f3f327eab44b462df249124e032b988d35528442 Mon Sep 17 00:00:00 2001 From: Mark Williams Date: Mon, 13 Apr 2026 16:19:54 +0100 Subject: [PATCH] LIMS-2152: Remove notifications on load of beamline status page --- client/src/js/app/store/store.js | 6 ++---- client/src/js/modules/status/views/beamline-status-view.vue | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/src/js/app/store/store.js b/client/src/js/app/store/store.js index a41ae57f5..7a61ec4e9 100644 --- a/client/src/js/app/store/store.js +++ b/client/src/js/app/store/store.js @@ -285,8 +285,6 @@ const store = new Vuex.Store({ url: app.apiurl + url, type: 'POST', data, - ...others, - success: function(response) { commit('notifications/addNotification', { title: 'Action Successful', @@ -306,6 +304,7 @@ const store = new Vuex.Store({ root: true }) }, + ...others, }) }, // update data to the backend that is not attached to any model @@ -315,8 +314,6 @@ const store = new Vuex.Store({ url: app.apiurl + url, type, data, - ...others, - success: function(response) { commit('notifications/addNotification', { title: 'Update Successful', @@ -336,6 +333,7 @@ const store = new Vuex.Store({ root: true }) }, + ...others, }) }, // delete data from the backend that is not attached to any model diff --git a/client/src/js/modules/status/views/beamline-status-view.vue b/client/src/js/modules/status/views/beamline-status-view.vue index 83e7d370d..341eb1343 100644 --- a/client/src/js/modules/status/views/beamline-status-view.vue +++ b/client/src/js/modules/status/views/beamline-status-view.vue @@ -222,6 +222,7 @@ export default { fetchCamToken(data) { return this.$store.dispatch('saveDataToApi', { url: `/download/sign`, + success: (response) => response, data }) }, @@ -320,4 +321,4 @@ export default { .motor-view { width: calc(50% - 10px); } - \ No newline at end of file +