Fix tag-retention ui bug

Signed-off-by: sshijun <sshijun@vmware.com>
This commit is contained in:
sshijun 2019-11-28 17:29:06 +08:00
parent 6c7ef36e60
commit dbd65fd94a

View File

@ -117,14 +117,7 @@ export class TagRetentionComponent implements OnInit {
level: "project", level: "project",
ref: this.projectId ref: this.projectId
}; };
let resolverData = this.route.snapshot.parent.data; this.refreshAfterCreatRetention();
if (resolverData) {
let project = <Project>resolverData["projectResolver"];
if (project.metadata && project.metadata.retention_id) {
this.retentionId = project.metadata.retention_id;
}
}
this.getRetention();
this.getMetadata(); this.getMetadata();
} }
openConfirm(cron: string) { openConfirm(cron: string) {