Test Fixes

This commit is contained in:
Josh Krawczyk
2020-05-31 22:34:25 -04:00
parent 7a024670da
commit e7c0dd24af
3 changed files with 42 additions and 29 deletions

View File

@@ -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,