Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions client/src/js/app/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -306,6 +304,7 @@ const store = new Vuex.Store({
root: true
})
},
...others,
})
},
// update data to the backend that is not attached to any model
Expand All @@ -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',
Expand All @@ -336,6 +333,7 @@ const store = new Vuex.Store({
root: true
})
},
...others,
})
},
// delete data from the backend that is not attached to any model
Expand Down
3 changes: 2 additions & 1 deletion client/src/js/modules/status/views/beamline-status-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export default {
fetchCamToken(data) {
return this.$store.dispatch('saveDataToApi', {
url: `/download/sign`,
success: (response) => response,
data
})
},
Expand Down Expand Up @@ -320,4 +321,4 @@ export default {
.motor-view {
width: calc(50% - 10px);
}
</style>
</style>
Loading