INFO: {{
@@ -18,4 +18,4 @@
searchTask not found
-
\ No newline at end of file
+
diff --git a/frontend/src/app/modules/common/async-progress/async-progress.component.ts b/frontend/src/app/modules/common/async-progress/async-progress.component.ts
index 79d5ba8b21..142a4bd9a9 100644
--- a/frontend/src/app/modules/common/async-progress/async-progress.component.ts
+++ b/frontend/src/app/modules/common/async-progress/async-progress.component.ts
@@ -144,7 +144,7 @@ export class AsyncProgressComponent implements OnInit, OnDestroy {
queryParams[key] = value;
}
}
- this.router.navigate(path, {queryParams});
+ this.router.navigate(path, { queryParams });
}
handleResult(result: any) {
@@ -178,6 +178,14 @@ export class AsyncProgressComponent implements OnInit, OnDestroy {
replaceUrl: true,
});
break;
+ case TaskAction.CREATE_TOOL:
+ this.router.navigate(['policy-configuration'], {
+ queryParams: {
+ toolId: result,
+ },
+ replaceUrl: true,
+ });
+ break;
case TaskAction.IMPORT_POLICY_FILE:
case TaskAction.IMPORT_POLICY_MESSAGE:
this.router.navigate(['policy-configuration'], {
@@ -236,8 +244,43 @@ export class AsyncProgressComponent implements OnInit, OnDestroy {
});
}
break;
+ case TaskAction.PUBLISH_TOOL:
+ if (result) {
+ const { isValid, errors, tool } = result;
+ if (!isValid) {
+ let text = [];
+ const blocks = errors.blocks;
+ const invalidBlocks = blocks.filter(
+ (block: any) => !block.isValid
+ );
+ for (let i = 0; i < invalidBlocks.length; i++) {
+ const block = invalidBlocks[i];
+ for (let j = 0; j < block.errors.length; j++) {
+ const error = block.errors[j];
+ if (block.id) {
+ text.push(
+ `