Added clear all db statistics function

This commit is contained in:
Ponkhy 2021-09-01 00:36:24 +02:00
parent 1341d220ed
commit 7b92166d18
6 changed files with 48 additions and 8 deletions

View file

@ -360,7 +360,6 @@ export default {
clearEvents() {
this.$root.clearEvents(this.monitor.id, (res) => {
if (res.ok) {
toast.success(res.msg);
this.$router.go();
} else {
toast.error(res.msg);
@ -371,7 +370,6 @@ export default {
clearHeartbeats() {
this.$root.clearHeartbeats(this.monitor.id, (res) => {
if (res.ok) {
toast.success(res.msg);
this.$router.go();
} else {
toast.error(res.msg);