diff --git a/web/src/components/ChecksTab.vue b/web/src/components/ChecksTab.vue index 3fc39958..ee6fe816 100644 --- a/web/src/components/ChecksTab.vue +++ b/web/src/components/ChecksTab.vue @@ -11,7 +11,7 @@ Disk Space Check - + @@ -192,17 +192,15 @@ :checkpk="checkpk" /> - - - - - - + + @@ -254,9 +252,8 @@ import mixins from "@/mixins/mixins"; import DiskSpaceCheck from "@/components/modals/checks/DiskSpaceCheck"; import MemCheck from "@/components/modals/checks/MemCheck"; import CpuLoadCheck from "@/components/modals/checks/CpuLoadCheck"; +import PingCheck from "@/components/modals/checks/PingCheck"; // refactor below -import AddPingCheck from "@/components/modals/checks/AddPingCheck"; -import EditPingCheck from "@/components/modals/checks/EditPingCheck"; import AddWinSvcCheck from "@/components/modals/checks/AddWinSvcCheck"; import EditWinSvcCheck from "@/components/modals/checks/EditWinSvcCheck"; import AddScriptCheck from "@/components/modals/checks/AddScriptCheck"; @@ -272,8 +269,7 @@ export default { DiskSpaceCheck, MemCheck, CpuLoadCheck, - AddPingCheck, - EditPingCheck, + PingCheck, AddWinSvcCheck, EditWinSvcCheck, AddScriptCheck, @@ -291,9 +287,8 @@ export default { showDiskSpaceCheck: false, showMemCheck: false, showCpuLoadCheck: false, + showPingCheck: false, // refactor below - showAddPingCheck: false, - showEditPingCheck: false, showAddWinSvcCheck: false, showEditWinSvcCheck: false, showAddScriptCheck: false, @@ -351,6 +346,9 @@ export default { case "cpuload": this.showCpuLoadCheck = true; break; + case "ping": + this.showPingCheck = true; + break; } }, checkAlertAction(pk, category, alert_type, alert_action) { diff --git a/web/src/components/modals/checks/AddPingCheck.vue b/web/src/components/modals/checks/AddPingCheck.vue deleted file mode 100644 index 77be38d4..00000000 --- a/web/src/components/modals/checks/AddPingCheck.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - \ No newline at end of file diff --git a/web/src/components/modals/checks/EditPingCheck.vue b/web/src/components/modals/checks/EditPingCheck.vue deleted file mode 100644 index b16f5ddd..00000000 --- a/web/src/components/modals/checks/EditPingCheck.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - \ No newline at end of file diff --git a/web/src/components/modals/checks/PingCheck.vue b/web/src/components/modals/checks/PingCheck.vue new file mode 100644 index 00000000..aacea247 --- /dev/null +++ b/web/src/components/modals/checks/PingCheck.vue @@ -0,0 +1,111 @@ + + + \ No newline at end of file