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
Lead user back when closing the page on job_statuses
Oliver Günther64121cb2c590
diff --git a/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts b/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.tsindex 88d79f44ecf..520cb105043 100644--- a/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts+++ b/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts@@ -3,6 +3,7 @@ import {StateService} from "@uirouter/core";import {OpModalService} from "core-components/op-modals/op-modal.service";import {OpModalComponent} from "core-components/op-modals/op-modal.component";import {JobStatusModal} from "core-app/modules/job-status/job-status-modal/job-status.modal";+import {take} from "rxjs/operators";@Component({template: ''@@ -17,6 +18,14 @@ export class DisplayJobPageComponent implements AfterViewInit, OnDestroy {ngAfterViewInit() {this.modal = this.modalService.show(JobStatusModal, this.injector, { jobId: this.$state.params.jobId });+ this.modal+ .closingEvent+ .pipe(+ take(1)+ ).subscribe(() => {+ // Go back in history+ window.history.back();+ });}ngOnDestroy() {