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",
ref: this.projectId
};
let resolverData = this.route.snapshot.parent.data;
if (resolverData) {
let project = <Project>resolverData["projectResolver"];
if (project.metadata && project.metadata.retention_id) {
this.retentionId = project.metadata.retention_id;
}
}
this.getRetention();
this.refreshAfterCreatRetention();
this.getMetadata();
}
openConfirm(cron: string) {