Skip to content

Commit

Permalink
Load shared filters js only when required
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Dec 27, 2024
1 parent 5908902 commit 92048a4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/app/assets/config/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//= link webui/cm2/codemirror-file.js
//= link webui/cm2/codemirror-prjconf.js
//= link webui/cm2/codemirror-xml.js
//= link webui/content-selector-filters.js
//= link_tree ../images


1 change: 0 additions & 1 deletion src/api/app/assets/javascripts/webui/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@
//= require webui/canned_responses.js
//= require webui/multi_select.js
//= require webui/dropdown.js
//= require webui/content-selector-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@

.text-center.mt-4.mb-4
= link_to('Clear', token_workflow_runs_path(@token, []), class: 'btn btn-light border')

- content_for(:content_for_head, javascript_include_tag('webui/content-selector-filters'))
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@
checked: checked }
.text-center.mt-4.mb-4
= link_to('Clear', url, class: 'btn btn-light border')

- content_for(:content_for_head, javascript_include_tag('webui/content-selector-filters'))
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@
.text-center.mt-4.mb-4
= link_to('Clear', my_notifications_path, class: 'btn btn-light border')

- content_for(:content_for_head, javascript_include_tag('webui/content-selector-filters'))
-# haml-lint:enable ViewLength

0 comments on commit 92048a4

Please sign in to comment.