Commit 6fc05683 authored by Yogi's avatar Yogi Committed by Nicolò Maria Mezzopera

Add label to toggle in edit_feature_flag.vue

parent fe4ba437
...@@ -86,6 +86,8 @@ export default { ...@@ -86,6 +86,8 @@ export default {
data-track-event="click_button" data-track-event="click_button"
data-track-label="feature_flag_toggle" data-track-label="feature_flag_toggle"
class="gl-mr-4" class="gl-mr-4"
:label="__('Feature flag status')"
label-position="hidden"
@change="toggleActive" @change="toggleActive"
/> />
<h3 class="page-title gl-m-0">{{ title }}</h3> <h3 class="page-title gl-m-0">{{ title }}</h3>
......
---
title: Add GlToggle label in edit feature flag
merge_request: 54546
author: Yogi (@yo)
type: changed
...@@ -12575,6 +12575,9 @@ msgstr "" ...@@ -12575,6 +12575,9 @@ msgstr ""
msgid "Feature flag is not enabled on the environment's project." msgid "Feature flag is not enabled on the environment's project."
msgstr "" msgstr ""
msgid "Feature flag status"
msgstr ""
msgid "Feature flag was not removed." msgid "Feature flag was not removed."
msgstr "" msgstr ""
......
...@@ -150,5 +150,12 @@ describe('Edit feature flag form', () => { ...@@ -150,5 +150,12 @@ describe('Edit feature flag form', () => {
label: 'feature_flag_toggle', label: 'feature_flag_toggle',
}); });
}); });
it('should render the toggle with a visually hidden label', () => {
expect(wrapper.find(GlToggle).props()).toMatchObject({
label: 'Feature flag status',
labelPosition: 'hidden',
});
});
}); });
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment