diff --git a/server/server.js b/server/server.js
index 003d25ae6..d75f8de99 100644
--- a/server/server.js
+++ b/server/server.js
@@ -752,13 +752,14 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
}
});
- socket.on("deleteMonitorTag", async (tagID, monitorID, callback) => {
+ socket.on("deleteMonitorTag", async (tagID, monitorID, value, callback) => {
try {
checkLogin(socket)
- await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ?", [
+ await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ? AND value = ?", [
tagID,
monitorID,
+ value,
])
// Cleanup unused Tags
diff --git a/src/components/TagsManager.vue b/src/components/TagsManager.vue
index ebe3e16aa..fc30a4d33 100644
--- a/src/components/TagsManager.vue
+++ b/src/components/TagsManager.vue
@@ -40,7 +40,7 @@
-
+
{{ $t("Tag with this value already exist.") }}
@@ -86,7 +86,7 @@