Skip to content

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

614 B
Raw Blame
import { Injectable } from '@angular/core';
import { TurboRequestsService } from 'core-app/core/turbo/turbo-requests.service';
import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';

@Injectable({ providedIn: 'root' })
export class JobStatusModalService {
  constructor(
    protected pathHelper:PathHelperService,
    protected turboRequests:TurboRequestsService,
  ) {}

  public show(jobId:string):void {
    void this.turboRequests.requestStream(this.jobModalUrl(jobId));
  }

  private jobModalUrl(jobId:string):string {
    return this.pathHelper.jobStatusModalPath(jobId);
  }
}