fix: 解决上传证书状态异常的问题 (#4999)

Refs https://github.com/1Panel-dev/1Panel/issues/4976
This commit is contained in:
zhengkunwang
2024-05-22 14:21:35 +08:00
committed by wanghe-fit2cloud
parent 2ec19fb7d4
commit 56ce7ddc88
2 changed files with 3 additions and 2 deletions
+1
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 {
+2 -2
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';
},
},
{