Skip to content

Commit 3322711

Browse files
committed
Changing from click/x to click set/unset for detailed views
1 parent f439067 commit 3322711

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed

default/data/ui/views/overview.xml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@
6161
<option name="useColors">0</option>
6262
<option name="useThousandSeparators">1</option>
6363
<drilldown>
64-
<set token="title1">$row.certname$</set>
64+
<condition match="$title1$==&quot;true&quot;">
65+
<unset token="title1"></unset>
66+
</condition>
67+
<condition>
68+
<set token="title1">true</set>
69+
</condition>
6570
</drilldown>
6671
</single>
6772
</panel>
@@ -94,7 +99,12 @@
9499
<option name="underLabel">hosts with corrective changes</option>
95100
<option name="useColors">0</option>
96101
<drilldown>
97-
<set token="title2">$row.click$</set>
102+
<condition match="$title2$==&quot;true&quot;">
103+
<unset token="title2"></unset>
104+
</condition>
105+
<condition>
106+
<set token="title2">true</set>
107+
</condition>
98108
</drilldown>
99109
</single>
100110
</panel>
@@ -121,7 +131,12 @@
121131
<option name="trendDisplayMode">percent</option>
122132
<option name="underLabel">hosts with failures</option>
123133
<drilldown>
124-
<set token="title3">$row.click$</set>
134+
<condition match="$title3$==&quot;true&quot;">
135+
<unset token="title3"></unset>
136+
</condition>
137+
<condition>
138+
<set token="title3">true</set>
139+
</condition>
125140
</drilldown>
126141
</single>
127142
</panel>
@@ -209,8 +224,8 @@
209224
<row>
210225
<panel>
211226
<html>
212-
<b># of Resources</b>                                                                        <button class="btn" align="right" data-unset-token="title5">X</button>
213-
</html>
227+
<b># of Resources</b>>
228+
</html>
214229
<single>
215230
<search>
216231
<query>`puppet_summary_index` sourcetype="puppet:summary" pe_console="*" | dedup certname | stats sum(metrics.resources.total)</query>
@@ -225,7 +240,12 @@
225240
<option name="trendDisplayMode">absolute</option>
226241
<option name="trendInterval">-7d</option>
227242
<drilldown>
228-
<set token="title5">$row.click$</set>
243+
<condition match="$title5$==&quot;true&quot;">
244+
<unset token="title5"></unset>
245+
</condition>
246+
<condition>
247+
<set token="title5">true</set>
248+
</condition>
229249
</drilldown>
230250
</single>
231251
</panel>
@@ -248,7 +268,12 @@
248268
<option name="unit">reports</option>
249269
<option name="unitPosition">after</option>
250270
<drilldown>
251-
<set token="title6">$row.click$</set>
271+
<condition match="$title6$==&quot;true&quot;">
272+
<unset token="title6"></unset>
273+
</condition>
274+
<condition>
275+
<set token="title6">true</set>
276+
</condition>
252277
</drilldown>
253278
</single>
254279
</panel>
@@ -268,7 +293,12 @@
268293
<option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
269294
<option name="refresh.display">progressbar</option>
270295
<drilldown>
271-
<set token="title4">$row.click$</set>
296+
<condition match="$title4$==&quot;true&quot;">
297+
<unset token="title4"></unset>
298+
</condition>
299+
<condition>
300+
<set token="title4">true</set>
301+
</condition>
272302
</drilldown>
273303
</single>
274304
</panel>

0 commit comments

Comments
 (0)