fix: 解决上传证书状态异常的问题 (#4999)
Some checks failed
Build / SonarCloud (push) Failing after 2s
Build Test / build-linux-binary (push) Failing after -4m8s
sync2gitee / repo-sync (push) Failing after 2s

Refs https://github.com/1Panel-dev/1Panel/issues/4976
This commit is contained in:
zhengkunwang 2024-05-13 13:54:30 +08:00 committed by GitHub
parent 5a8869e832
commit 8b9d1d9052
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -431,6 +431,7 @@ func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error {
websiteSSL := &model.WebsiteSSL{
Provider: constant.Manual,
Description: req.Description,
Status: constant.SSLReady,
}
var err error
if req.SSLID > 0 {

View file

@ -239,8 +239,8 @@ const buttons = [
click: function (row: Website.SSLDTO) {
onEdit(row);
},
disabled: function (row: Website.SSLDTO) {
return row.provider == 'selfSigned';
show: function (row: Website.SSLDTO) {
return row.provider != 'manual' && row.provider != 'selfSigned';
},
},
{