Skip to content

Commit

Permalink
Merge pull request #2380 from LibreSign/bugfix/hide-form-after-genera…
Browse files Browse the repository at this point in the history
…te-certificate

Hide form after generate certificate
  • Loading branch information
vitormattos authored Feb 28, 2024
2 parents 43c6128 + 144e33e commit a1be89e
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 a1be89e

Please sign in to comment.