OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
loading indicator css animation is restarted on turbo frame reload. Move it into the form.
as-op9aa7c860f65b
diff --git a/frontend/src/stimulus/controllers/dynamic/job-status-polling.controller.ts b/frontend/src/stimulus/controllers/dynamic/job-status-polling.controller.tsindex 9dcef31850c..c039b839e80 100644--- a/frontend/src/stimulus/controllers/dynamic/job-status-polling.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/job-status-polling.controller.ts@@ -14,16 +14,28 @@ export default class JobStatusPollingController extends Controller<FrameElement>}disconnect() {- this.finishedTargetConnected();+ this.stopPolling();if (this.backOnCloseValue) {window.history.back();}}finishedTargetConnected() {+ this.stopPolling();+ this.hideProgressIndicator();+ }++ stopPolling() {clearInterval(this.interval);}+ hideProgressIndicator() {+ const node = document.querySelector('#job-status-modal-dialog .op-loading-indicator');+ if (node) {+ node.remove();+ }+ }+downloadTargetConnected(element:HTMLLinkElement) {setTimeout(() => element.click(), 50);}diff --git a/modules/job_status/app/components/job_status/dialog/body_component.html.erb b/modules/job_status/app/components/job_status/dialog/body_component.html.erbindex 68ab941344a..e384c6818a9 100644--- a/modules/job_status/app/components/job_status/dialog/body_component.html.erb+++ b/modules/job_status/app/components/job_status/dialog/body_component.html.erb@@ -1,12 +1,5 @@<%= turbo_frame_tag "job_status_modal" do %>- <% if pending? %>- <%= component_wrapper do %>- <div class="op-loading-indicator">- <div></div>- <div></div>- </div>- <% end %>- <% elsif job.present? %>+ <% if !pending? && job.present? %><%= content_tag :div, "", data: { "job-status-polling-target": "finished" } %><% end %><%= render Primer::Beta::Blankslate.new do |component|diff --git a/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb b/modules/job_status/app/components/job_status/dialog/dialog_component.html.erbindex 1e87d6c37a3..af2a318c617 100644--- a/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb+++ b/modules/job_status/app/components/job_status/dialog/dialog_component.html.erb@@ -5,6 +5,10 @@id: MODAL_ID)) do |dialog| %><% dialog.with_body do %>+ <div class="op-loading-indicator" style="margin-bottom: -20px">+ <div></div>+ <div></div>+ </div><%= turbo_frame_tag("job_status_modal",src: job_status_dialog_body_path(job_uuid: job_uuid),data: {