Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHuynh333 committed Jan 7, 2025
1 parent 73c576f commit 6f9cc82
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<div>
<%= link_to new_workflow_executions_file_selector_path(
"file_selector[attachable_id]": @attachable.id,
"file_selector[attachable_type]": @attachable.class.to_s,
Expand Down Expand Up @@ -32,4 +31,3 @@ data: {
<%= @selected.empty? ? t(".no_selected_file") : @selected[:filename] %>
</div>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/components/nextflow_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<button
class="button button--state-primary button--size-default"
data-nextflow--samplesheet-target="submit"
data-action="click->nextflow--samplesheet#validateAttachments"
data-action="click->nextflow--samplesheet#validateForm"
>
<% if instance.nil? %>
<%= t(:"workflow_executions.submissions.create.submit") %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class extends Controller {
});
}

validateAttachments(event) {
validateForm(event) {
event.preventDefault();
let readyToSubmit = true;
const requiredFileCells = document.querySelectorAll(
Expand Down

0 comments on commit 6f9cc82

Please sign in to comment.