Skip to content

Commit 42634b7

Browse files
committed
Fixed tooltips
1 parent 3e50e35 commit 42634b7

File tree

1 file changed

+42
-39
lines changed
  • src/dashboard/Synapse.Dashboard/Pages/Correlations/Create

1 file changed

+42
-39
lines changed

src/dashboard/Synapse.Dashboard/Pages/Correlations/Create/View.razor

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -137,49 +137,52 @@ else
137137
</div>
138138
</Header>
139139
<Body>
140-
<b>Context Attributes</b>
141-
<KeyValuePairEditor OnAdd="((e) => OnAddOrUpdateConditionFilterAttribute(condition, filter, e.Key, e.Value))" />
142-
<hr />
143-
<table class="table table-striped">
144-
<tbody>
145-
@if (filter.Attributes != null
146-
&& filter.Attributes.Any())
147-
{
148-
foreach (var attr in filter.Attributes)
140+
<div title="Context attributes are used to filter inbound cloud events. If you set a context attribute with no value, inbound cloud events will need to have said attribute, no matter their value. The value can be a constant, a regular expression or a runtime expressions.">
141+
<b>Context Attributes</b>
142+
<KeyValuePairEditor OnAdd="((e) => OnAddOrUpdateConditionFilterAttribute(condition, filter, e.Key, e.Value))" />
143+
<hr />
144+
<table class="table table-striped">
145+
<tbody>
146+
@if (filter.Attributes != null
147+
&& filter.Attributes.Any())
149148
{
150-
<tr>
151-
<td><input type="text" value="@attr.Key" readonly class="form-control" /></td>
152-
<td>
153-
<KeyValuePairEditor Kvp="attr" OnChange="((e) => OnAddOrUpdateConditionFilterAttribute(condition, filter, attr.Key, e.Value))" />
154-
</td>
155-
<td><button @onclick="e => OnRemoveAttributeFromConditionFilter(condition, filter, attr.Key)" class="btn btn-danger"><small class="bi bi-trash-fill"></small></button></td>
156-
</tr>
149+
foreach (var attr in filter.Attributes)
150+
{
151+
<tr>
152+
<td><input type="text" value="@attr.Key" readonly class="form-control" /></td>
153+
<td>
154+
<KeyValuePairEditor Kvp="attr" OnChange="((e) => OnAddOrUpdateConditionFilterAttribute(condition, filter, attr.Key, e.Value))" />
155+
</td>
156+
<td><button @onclick="e => OnRemoveAttributeFromConditionFilter(condition, filter, attr.Key)" class="btn btn-danger"><small class="bi bi-trash-fill"></small></button></td>
157+
</tr>
158+
}
157159
}
158-
}
159-
</tbody>
160-
</table>
161-
162-
<b>Correlation Mappings</b>
163-
<KeyValuePairEditor OnAdd="((e) => OnAddOrUpdateConditionFilterCorrelationMapping(condition, filter, e.Key, e.Value))" />
164-
<hr />
165-
<table class="table table-striped">
166-
<tbody>
167-
@if (filter.CorrelationMappings != null
168-
&& filter.CorrelationMappings.Any())
169-
{
170-
foreach (var mapping in filter.CorrelationMappings)
160+
</tbody>
161+
</table>
162+
</div>
163+
<div title="Correlation mappings define the context attributes to use to correlate events. If you set a correlation mapping with no value, the value of the specified attribute will be evaluated to match an existing correlation context or to create a new one. ">
164+
<b>Correlation Mappings</b>
165+
<KeyValuePairEditor OnAdd="((e) => OnAddOrUpdateConditionFilterCorrelationMapping(condition, filter, e.Key, e.Value))" />
166+
<hr />
167+
<table class="table table-striped">
168+
<tbody>
169+
@if (filter.CorrelationMappings != null
170+
&& filter.CorrelationMappings.Any())
171171
{
172-
<tr>
173-
<td><input type="text" value="@mapping.Key" readonly class="form-control" /></td>
174-
<td>
175-
<KeyValuePairEditor Kvp="mapping" OnChange="((e) => OnAddOrUpdateConditionFilterCorrelationMapping(condition, filter, mapping.Key, e.Value))" />
176-
</td>
177-
<td><button @onclick="e => OnRemoveCorrelationMappingFromConditionFilter(condition, filter, mapping.Key)" class="btn btn-danger"><small class="bi bi-trash-fill"></small></button></td>
178-
</tr>
172+
foreach (var mapping in filter.CorrelationMappings)
173+
{
174+
<tr>
175+
<td><input type="text" value="@mapping.Key" readonly class="form-control" /></td>
176+
<td>
177+
<KeyValuePairEditor Kvp="mapping" OnChange="((e) => OnAddOrUpdateConditionFilterCorrelationMapping(condition, filter, mapping.Key, e.Value))" />
178+
</td>
179+
<td><button @onclick="e => OnRemoveCorrelationMappingFromConditionFilter(condition, filter, mapping.Key)" class="btn btn-danger"><small class="bi bi-trash-fill"></small></button></td>
180+
</tr>
181+
}
179182
}
180-
}
181-
</tbody>
182-
</table>
183+
</tbody>
184+
</table>
185+
</div>
183186
</Body>
184187
</Expander>
185188
}

0 commit comments

Comments
 (0)