diff --git a/src/portal/src/app/shared/components/view-token/view-token.component.ts b/src/portal/src/app/shared/components/view-token/view-token.component.ts index a93b6dc65..ba3a79c10 100644 --- a/src/portal/src/app/shared/components/view-token/view-token.component.ts +++ b/src/portal/src/app/shared/components/view-token/view-token.component.ts @@ -90,6 +90,7 @@ export class ViewTokenComponent implements OnInit { this.copyToken = true; this.createSuccess = 'SYSTEM_ROBOT.REFRESH_SECRET_SUCCESS'; // export to token file + robot.secret = res.secret; const downLoadUrl = `data:text/json;charset=utf-8, ${encodeURIComponent(JSON.stringify(robot))}`; this.downLoadHref = this.sanitizer.bypassSecurityTrustUrl(downLoadUrl); this.downLoadFileName = `${robot.name}.json`;