!126 【证书管理】删除证书弹框内容空白不显示问题修复

Merge pull request !126 from 杨海龙2023/OpenHarmony-5.0-Release
This commit is contained in:
openharmony_ci 2024-09-14 08:37:07 +00:00 committed by Gitee
commit 33dd7d499a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -442,6 +442,9 @@ struct ComponentUser {
rootCertificateDialog: CustomDialogController = new CustomDialogController({
alignment: DialogAlignment.Center,
cancel: () => {
this.setStatus.updateUserTrustedCertificateList();
},
builder: CustomContentDialog({
contentBuilder: () => {
this.rootCertificateContent();
@ -472,6 +475,9 @@ struct ComponentUser {
userDetailsDialog: CustomDialogController = new CustomDialogController({
alignment: DialogAlignment.Center,
cancel: () => {
this.setStatus.updateUserTrustedCertificateList();
},
builder: CustomContentDialog({
contentBuilder: () => {
this.userDetailContent(this.setStatus.certList[this.indexNum].status);
@ -490,7 +496,6 @@ struct ComponentUser {
value: $r('app.string.CustomDialogExampleUser_Flex_secButton_text'),
buttonStyle: ButtonStyleMode.TEXTUAL,
action: () => {
this.setStatus.updateUserTrustedCertificateList();
this.onShowDeleteWarnDialog();
},
role: ButtonRole.ERROR
@ -500,6 +505,9 @@ struct ComponentUser {
})
deleteCertWarnDialog: CustomDialogController = new CustomDialogController({
cancel: () => {
this.setStatus.updateUserTrustedCertificateList();
},
builder: CustomContentDialog({
contentBuilder: () => {
this.deleteWarnContent();
@ -510,8 +518,8 @@ struct ComponentUser {
value: $r('app.string.deleteAllCredCancel'),
buttonStyle: ButtonStyleMode.TEXTUAL,
action: () => {
this.setStatus.updateUserTrustedCertificateList();
this.deleteCertWarnDialog?.close();
this.setStatus.updateUserTrustedCertificateList();
}
},
{