Skip to content

Commit

Permalink
Merge pull request #4196 from LibreSign/backport/4194/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: display certificate data after regenerate certificate
  • Loading branch information
vitormattos authored Dec 29, 2024
2 parents 4bbcffe + 3d072fc commit 26f0426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/Handler/CertificateEngine/AEngineHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ public function configureCheck(): array {
public function toArray(): array {
$return = [
'configPath' => $this->getConfigPath(),
'generated' => $this->isSetupOk(),
'rootCert' => [
'commonName' => $this->getCommonName(),
'names' => [],
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings/RootCertificateOpenSsl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<NcSettingsSection v-if="isThisEngine && loaded"
:name="name"
:description="description">
<div v-if="configureOk && !isCertificateGenerated" id="tableRootCertificateOpenSsl" class="form-libresign">
<div v-if="configureOk && isCertificateGenerated" id="tableRootCertificateOpenSsl" class="form-libresign">
<table class="grid">
<tbody>
<tr>
Expand Down Expand Up @@ -155,7 +155,7 @@ export default {
return this.configureCheckStore.isConfigureOk('openssl')
},
isCertificateGenerated() {
return this.certificate.rootCert.names.length > 0
return this.certificate.generated
},
loaded() {
return this.configureCheckStore.items.length > 0
Expand Down

0 comments on commit 26f0426

Please sign in to comment.