mirror of
https://github.com/goharbor/harbor
synced 2025-04-14 15:05:18 +00:00
Add secret to download file when refreshing robot secret (#16564)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
33da8e2bcc
commit
f37f93b735
|
@ -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`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user