From b37ac32905a088f59b58500eac82719e2165cf30 Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Wed, 2 Feb 2022 19:30:47 +0000 Subject: [PATCH] Updated formatting for friendly name check Signed-off-by: Computroniks Co-authored-by: Adam Stachowicz --- src/pages/EditMonitor.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 01e21694b..cea82227a 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -456,10 +456,12 @@ export default { this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => { if (res.ok) { this.monitor = res.monitor; + // Handling for when friendly name isn't set if (this.monitor.name === this.monitor.url || this.monitor.name === this.monitor.hostname) { this.monitor.name = ""; } + // Handling for monitors that are created before 1.7.0 if (this.monitor.retryInterval === 0) { this.monitor.retryInterval = this.monitor.interval;