Skip to content
Snippets Groups Projects

SWS-7: Finish "download" workflow template

Merged Nathan Hertz requested to merge SWS-7-download-workflow-template into main
1 unresolved thread
Files
19
import {Injectable} from '@angular/core';
import {ResultType} from "../model/result-type";
import {BehaviorSubject, Observable} from "rxjs";
import {HttpClient} from "@angular/common/http";
import {EnvService} from "../../env/env.service";
@Injectable({
providedIn: 'root'
@@ -13,11 +11,7 @@ export class ResultTypeService {
private _resultType: BehaviorSubject<ResultType> = new BehaviorSubject(this.resultType);
public readonly resultType$: Observable<ResultType> = this._resultType.asObservable();
private serverAddress: string = '';
constructor(private http: HttpClient, private env: EnvService) {
this.serverAddress = env.apiUrl;
}
constructor() {}
updateResultType(name: string): void {
this.resultType = ResultType.getResultType(name);
Loading