Commit 6df5125f authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'show_selected_template_type' into 'master'

Show selected template type when clicked

See merge request gitlab-org/gitlab!24596
parents 5454ece3 fb506a12
......@@ -117,11 +117,7 @@ export default class FileTemplateMediator {
selector.hide();
}
});
if (this.editor.getValue() !== '') {
this.setTypeSelectorToggleText(item.name);
}
this.setTypeSelectorToggleText(item.name);
this.cacheToggleText();
}
......
---
title: Show selected template type when clicked
merge_request: 24596
author:
type: fixed
......@@ -75,6 +75,11 @@ describe 'Projects > Files > Template type dropdown selector', :js do
check_type_selector_toggle_text('.gitignore')
end
it 'sets the toggle text when selecting the template type' do
select_template_type('.gitignore')
check_type_selector_toggle_text('.gitignore')
end
it 'selects every template type correctly' do
try_selecting_all_types
end
......
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