mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-09 19:04:45 +00:00
Improved logic for friendlyNameRequired method
Signed-off-by: Computroniks <mnickson@sidingsmedia.com>
This commit is contained in:
parent
d764e80068
commit
3e36d4139f
1 changed files with 1 additions and 5 deletions
|
@ -552,11 +552,7 @@ export default {
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
friendlyNameRequired() {
|
friendlyNameRequired() {
|
||||||
if (this.friendlyNameRequiredOptions.includes(this.monitor.type)) {
|
return this.friendlyNameRequiredOptions.includes(this.monitor.type);
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue