File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
app/components/projects/settings
project_custom_field_sections
frontend/src/stimulus/controllers/dynamic/projects/settings Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 3131 end
3232 end
3333 header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
34- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'bulkActionContainer ' }) do
34+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering ' }) do
3535 render(Primer::Beta::Button.new(
3636 tag: :a,
3737 href: enable_all_project_settings_life_cycle_path(project_id: project),
4545 t('projects.settings.actions.label_enable_all')
4646 end
4747 end
48- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'bulkActionContainer ' }) do
48+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering ' }) do
4949 render(Primer::Beta::Button.new(
5050 tag: :a,
5151 href: disable_all_project_settings_life_cycle_path(project_id: project),
Original file line number Diff line number Diff line change 1313 end
1414 end
1515 section_header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
16- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'bulkActionContainer ' }) do
16+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering ' }) do
1717 render(Primer::Beta::Button.new(
1818 tag: :a,
1919 href: enable_all_of_section_project_settings_project_custom_fields_path(
3232 t('projects.settings.actions.label_enable_all')
3333 end
3434 end
35- actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'bulkActionContainer ' }) do
35+ actions_container.with_column(data: { 'projects--settings--border-box-filter-target': 'hideWhenFiltering ' }) do
3636 render(Primer::Beta::Button.new(
3737 tag: :a,
3838 href: disable_all_of_section_project_settings_project_custom_fields_path(
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ import FilterListController from '../../filter/filter-list.controller';
3232
3333export default class extends FilterListController {
3434 static targets = [
35- 'bulkActionContainer ' ,
35+ 'hideWhenFiltering ' ,
3636 ] ;
3737
38- declare readonly bulkActionContainerTargets :HTMLInputElement [ ] ;
38+ declare readonly hideWhenFilteringTargets :HTMLInputElement [ ] ;
3939
4040 filterLists ( ) {
4141 const query = this . filterTarget . value . toLowerCase ( ) ;
@@ -56,13 +56,13 @@ export default class extends FilterListController {
5656 }
5757
5858 hideBulkActionContainers ( ) {
59- this . bulkActionContainerTargets . forEach ( ( item ) => {
59+ this . hideWhenFilteringTargets . forEach ( ( item ) => {
6060 this . setVisibility ( item , false ) ;
6161 } ) ;
6262 }
6363
6464 showBulkActionContainers ( ) {
65- this . bulkActionContainerTargets . forEach ( ( item ) => {
65+ this . hideWhenFilteringTargets . forEach ( ( item ) => {
6666 this . setVisibility ( item , true ) ;
6767 } ) ;
6868 }
You can’t perform that action at this time.
0 commit comments