mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-04-28 18:50:07 +00:00
Test Fixes
This commit is contained in:
@@ -249,6 +249,7 @@ export default {
|
||||
methods: {
|
||||
checkAlert(id, alert_type, action) {
|
||||
const data = {};
|
||||
|
||||
if (alert_type === "Email") {
|
||||
data.email_alert = action;
|
||||
} else {
|
||||
@@ -258,7 +259,7 @@ export default {
|
||||
const act = action ? "enabled" : "disabled";
|
||||
const color = action ? "positive" : "warning";
|
||||
this.$store
|
||||
.dispatch("editCheckAlert", id, data)
|
||||
.dispatch("editCheckAlert", { pk: id, data })
|
||||
.then(r => {
|
||||
this.$q.notify({
|
||||
color: color,
|
||||
|
||||
@@ -159,7 +159,7 @@ export const store = new Vuex.Store({
|
||||
loadAgentServices(context, agentpk) {
|
||||
return axios.get(`/services/${agentpk}/services/`);
|
||||
},
|
||||
editCheckAlert(context, pk, data) {
|
||||
editCheckAlert(context, {pk, data}) {
|
||||
return axios.patch(`/checks/${pk}/check/`, data);
|
||||
},
|
||||
deleteCheck(context, pk) {
|
||||
|
||||
Reference in New Issue
Block a user