Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorIvo Kurzemnieks <ivo.kurzemnieks@zabbix.com>2022-01-21 13:06:20 +0300
committerIvo Kurzemnieks <ivo.kurzemnieks@zabbix.com>2022-01-21 13:06:20 +0300
commit2892e08d866caf4c27d1a4e5683b0116c6d1a4e3 (patch)
tree5cbe618e53696d1ca38633a55630929483e01af1 /ui
parent1ec566892ed87afc88ea8ccec217ca588979dea2 (diff)
..F....... [ZBX-19796] fixed coding style and extended changelog message
Diffstat (limited to 'ui')
-rw-r--r--ui/js/class.tab-indicators.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/ui/js/class.tab-indicators.js b/ui/js/class.tab-indicators.js
index 98fd1db344c..a8962a1eddd 100644
--- a/ui/js/class.tab-indicators.js
+++ b/ui/js/class.tab-indicators.js
@@ -310,17 +310,18 @@ class MacrosTabIndicatorItem extends TabIndicatorItem {
}
getValue() {
- return [...document.querySelectorAll('#tbl_macros .form_row')].filter((row) => {
- const macro = row.querySelector('textarea[name$="[macro]"]');
- const inherited_type = row.querySelector('input[name$="[inherited_type]"]');
-
- if (inherited_type !== null
- && parseInt(inherited_type.value, 10) == MacrosTabIndicatorItem.ZBX_PROPERTY_INHERITED) {
- return false;
- }
+ return [...document.querySelectorAll('#tbl_macros .form_row')]
+ .filter((row) => {
+ const macro = row.querySelector('textarea[name$="[macro]"]');
+ const inherited_type = row.querySelector('input[name$="[inherited_type]"]');
+
+ if (inherited_type !== null
+ && parseInt(inherited_type.value, 10) == MacrosTabIndicatorItem.ZBX_PROPERTY_INHERITED) {
+ return false;
+ }
- return (macro !== null && macro.value !== '');
- })
+ return (macro !== null && macro.value !== '');
+ })
.length;
}