ajax
This commit is contained in:
parent
c40c62f70b
commit
0ead5297ea
|
@ -1,14 +1,9 @@
|
|||
import { JsonPipe } from '@angular/common';
|
||||
import { Component, Inject, Input, OnChanges, OnInit, SecurityContext, SimpleChanges, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
|
||||
import { Component, Inject, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
|
||||
import { FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms';
|
||||
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { MatSelectChange } from '@angular/material/select';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { KeyValue, SimpleResource, WfConf, WfHistoryEntry, WfParam, WfSection, WfTemplateDesc } from '../common/is.model';
|
||||
import { SimpleResource, WfParam, WfTemplateDesc } from '../common/is.model';
|
||||
import { ResMetadataDialog } from '../resources/resources.component';
|
||||
import { MatTableDataSource } from '@angular/material/table';
|
||||
import { WfHistoryDialog } from '../wf-history/wf-history.component';
|
||||
import { WfConfsClient } from './wf-confs.client';
|
||||
import mermaid from 'mermaid';
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ export class WfConfsClient extends ISClient {
|
|||
|
||||
loadWfTemplate(id: any, onSuccess: Function): void {
|
||||
const headers = new HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');
|
||||
this.httpGetWithOptions<string>("/proxy/byType/resource_manager/api/resources/" + encodeURIComponent(id) + '/content', {
|
||||
this.httpGetWithOptions<string>("/proxy/byType/resource_manager/api/resources/byType/wf_template/" + encodeURIComponent(id) + '/content', {
|
||||
headers, responseType: 'text' as 'json'
|
||||
}, onSuccess);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue