mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-09 10:54:45 +00:00
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:
parent
3e36d4139f
commit
b37ac32905
1 changed files with 2 additions and 0 deletions
|
@ -456,10 +456,12 @@ export default {
|
||||||
this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
|
this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.monitor = res.monitor;
|
this.monitor = res.monitor;
|
||||||
|
|
||||||
// Handling for when friendly name isn't set
|
// Handling for when friendly name isn't set
|
||||||
if (this.monitor.name === this.monitor.url || this.monitor.name === this.monitor.hostname) {
|
if (this.monitor.name === this.monitor.url || this.monitor.name === this.monitor.hostname) {
|
||||||
this.monitor.name = "";
|
this.monitor.name = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handling for monitors that are created before 1.7.0
|
// Handling for monitors that are created before 1.7.0
|
||||||
if (this.monitor.retryInterval === 0) {
|
if (this.monitor.retryInterval === 0) {
|
||||||
this.monitor.retryInterval = this.monitor.interval;
|
this.monitor.retryInterval = this.monitor.interval;
|
||||||
|
|
Loading…
Add table
Reference in a new issue