mirror of
https://gitee.com/openharmony/security_privacy_center
synced 2024-11-23 07:39:58 +00:00
commit
a16e325c80
@ -144,10 +144,10 @@ struct CertInstallAliasInput {
|
||||
this.mAppCredAuthPresenter.checkCertNameLength(fileInfo.uri, this.certAlias, fileInfo.suffix, pwd)
|
||||
.then((result: number) => {
|
||||
if (result !== CMModelErrorCode.CM_MODEL_ERROR_SUCCESS) {
|
||||
console.info("CertNameLength reached limit!");
|
||||
console.info('CertNameLength reached limit!');
|
||||
this.isCertLong = true;
|
||||
} else {
|
||||
console.info("CertNameLength is within the limit !");
|
||||
console.info('CertNameLength is within the limit!');
|
||||
this.isCertLong = false;
|
||||
this.mAppCredAuthPresenter.installCert(fileInfo.uri, this.certAlias, fileInfo.suffix);
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ struct CertificateComponent {
|
||||
.width(WidthPercent.WH_100_100)
|
||||
.height(WidthPercent.WH_100_100);
|
||||
}
|
||||
.backgroundColor($r("sys.color.ohos_id_color_sub_background"))
|
||||
.backgroundColor($r('sys.color.ohos_id_color_sub_background'))
|
||||
.width(WidthPercent.WH_100_100)
|
||||
.height(WidthPercent.WH_100_100);
|
||||
}
|
||||
@ -230,8 +230,8 @@ struct CertificateComponent {
|
||||
onPageShow() {
|
||||
let uiExtensionFlag = GlobalContext.getContext().getFlag();
|
||||
let installType: string = GlobalContext.getContext().getAbilityWant().parameters?.installType as string;
|
||||
let uri = GlobalContext.getContext().getAbilityWant().uri
|
||||
|| GlobalContext.getContext().getAbilityWant().parameters?.uri;
|
||||
let uri = GlobalContext.getContext().getAbilityWant().uri ||
|
||||
GlobalContext.getContext().getAbilityWant().parameters?.uri;
|
||||
GlobalContext.getContext().clearAbilityWantUri();
|
||||
GlobalContext.getContext().clearAbilityWantParamsUri();
|
||||
if (uri === 'certInstall') {
|
||||
|
@ -51,11 +51,11 @@ export default class CmInstallPresenter {
|
||||
console.debug(TAG + 'updateCertFileType suffix: ' + suffix);
|
||||
if ((suffix === 'cer') || (suffix === 'pem')) {
|
||||
this.optType = CMModelOptType.CM_MODEL_OPT_USER_CA;
|
||||
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx'))
|
||||
&& AppStorage.get('installUserCred') === true) {
|
||||
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
|
||||
AppStorage.get('installUserCred') === true) {
|
||||
this.optType = CMModelOptType.CM_MODEL_OPT_APP_CRED;
|
||||
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx'))
|
||||
&& AppStorage.get('installSystemCred') === true) {
|
||||
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
|
||||
AppStorage.get('installSystemCred') === true) {
|
||||
this.optType = CMModelOptType.CM_MODEL_OPT_SYSTEM_CRED;
|
||||
} else {
|
||||
console.debug(TAG, 'The file type is not supported. suffix: ' + suffix);
|
||||
|
Loading…
Reference in New Issue
Block a user