From 1c8407a433f305a4d325667302285e27d7d4428a Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 13 Jan 2022 11:36:55 +0800 Subject: [PATCH] [MQTT] Use existing fields instead of creating new ones (UI) --- db/patch-added-mqtt-monitor.sql | 3 --- src/pages/EditMonitor.vue | 24 +++++++----------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/db/patch-added-mqtt-monitor.sql b/db/patch-added-mqtt-monitor.sql index 2da67240..b6cc6c57 100644 --- a/db/patch-added-mqtt-monitor.sql +++ b/db/patch-added-mqtt-monitor.sql @@ -7,9 +7,6 @@ ALTER TABLE monitor ALTER TABLE monitor ADD mqtt_success_message VARCHAR(255); -ALTER TABLE monitor - ADD mqtt_port NUMBER(10); - ALTER TABLE monitor ADD mqtt_username VARCHAR(255); diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 2269eaae..13ed84ca 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -70,15 +70,15 @@ - -
+ +
- -
+ +
@@ -122,27 +122,17 @@