Skip to content

Commit

Permalink
Merge pull request #2381 from LibreSign/backport/2380/stable28
Browse files Browse the repository at this point in the history
[stable28] Hide form after generate certificate
  • Loading branch information
vitormattos authored Feb 28, 2024
2 parents 1a719a0 + 7ef9e4f commit 74342f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/views/Settings/RootCertificateCfssl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default {
},
computed: {
configureOk() {
return this.configureCheckStore.isConfigureOk('cfssl') || this.certificate.generated
return this.configureCheckStore.isConfigureOk('cfssl') || this.certificate.configPath.length > 0
},
loaded() {
return this.configureCheckStore.items.length > 0
Expand Down Expand Up @@ -206,7 +206,6 @@ export default {
},
cfsslUri: '',
configPath: '',
generated: false,
}
this.customData = false
this.formDisabled = false
Expand Down
9 changes: 2 additions & 7 deletions src/views/Settings/RootCertificateOpenSsl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default {
names: [],
},
configPath: '',
generated: false,
},
error: false,
customData: false,
Expand All @@ -152,7 +151,7 @@ export default {
},
computed: {
configureOk() {
return this.configureCheckStore.isConfigureOk('openssl') || this.certificate.generated
return this.configureCheckStore.isConfigureOk('openssl') || this.certificate.configPath.length > 0
},
loaded() {
return this.configureCheckStore.items.length > 0
Expand Down Expand Up @@ -193,7 +192,6 @@ export default {
names: [],
},
configPath: '',
generated: false,
}
this.customData = false
this.formDisabled = false
Expand Down Expand Up @@ -248,10 +246,7 @@ export default {
}
this.certificate = response.data
this.customData = loadState('libresign', 'config_path').length > 0 && this.certificate.configPath.length > 0
if (this.certificate.generated) {
this.afterCertificateGenerated()
return
}
this.afterCertificateGenerated()
} catch (e) {
console.error(e)
}
Expand Down

0 comments on commit 74342f0

Please sign in to comment.