Updated formatting for friendly name check

Signed-off-by: Computroniks <mnickson@sidingsmedia.com>

Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
Matthew Nickson 2022-02-02 19:30:47 +00:00 committed by GitHub
parent 3e36d4139f
commit b37ac32905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;