Skip to content

Commit 1b6c737

Browse files
committed
graphing/designer: rename rrd type selector
Change-Id: I2908a3a88ba34b06646cdc48e03a3fc22c39b869
1 parent a275827 commit 1b6c737

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/cmk-frontend-vue/src/graphing/designer/components/forms/RrdForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function onModeChange(isQuery: boolean): void {
3838
<div class="graphing-rrd-form">
3939
<CmkLabeledSwitch
4040
:model-value="item.type === 'rrd_query'"
41-
:off-label="_t('Single metric')"
42-
:on-label="_t('Dynamic query')"
41+
:off-label="_t('Single selection')"
42+
:on-label="_t('Multiple selections')"
4343
@update:model-value="onModeChange"
4444
/>
4545

packages/cmk-frontend-vue/tests/graphing/designer/components/MetricsTable.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test('adding a source appends an auto-expanded draft row', async () => {
7373
expect(store.items.value.map((item) => item.id)).toEqual(['A', 'B'])
7474
expect(store.items.value[1]).toMatchObject({ type: 'rrd_metric', host_name: null })
7575
// The new row opens expanded, showing its source configuration form.
76-
expect(await screen.findByText('Single metric')).toBeInTheDocument()
76+
expect(await screen.findByText('Single selection')).toBeInTheDocument()
7777
})
7878

7979
test('the added row is scrolled into view', async () => {

packages/cmk-frontend-vue/tests/graphing/designer/components/RrdForm.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function renderForm(seed: DraftRRDMetricItem | DraftRRDQueryItem) {
3636
return store
3737
}
3838

39-
test('toggling to Dynamic query converts the row, keeping the metric and consolidation', async () => {
39+
test('toggling to multiple selections converts the row, keeping the metric and consolidation', async () => {
4040
const store = renderForm({
4141
...newRrdMetricDraft('A', '#28a2f3'),
4242
host_name: 'h',
@@ -53,7 +53,7 @@ test('toggling to Dynamic query converts the row, keeping the metric and consoli
5353
expect('color' in item).toBe(false)
5454
})
5555

56-
test('toggling back to Single metric restores a colored metric row with an empty selection', async () => {
56+
test('toggling back to single selection restores a colored metric row with an empty selection', async () => {
5757
const store = renderForm({ ...newRrdMetricDraft('A', '#28a2f3'), metric_name: 'util' })
5858

5959
await fireEvent.click(screen.getByRole('switch'))

0 commit comments

Comments
 (0)