mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
fix: 解决上传证书状态异常的问题 (#4999)
Refs https://github.com/1Panel-dev/1Panel/issues/4976
This commit is contained in:
parent
5a8869e832
commit
8b9d1d9052
@ -431,6 +431,7 @@ func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error {
|
|||||||
websiteSSL := &model.WebsiteSSL{
|
websiteSSL := &model.WebsiteSSL{
|
||||||
Provider: constant.Manual,
|
Provider: constant.Manual,
|
||||||
Description: req.Description,
|
Description: req.Description,
|
||||||
|
Status: constant.SSLReady,
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
if req.SSLID > 0 {
|
if req.SSLID > 0 {
|
||||||
|
@ -239,8 +239,8 @@ const buttons = [
|
|||||||
click: function (row: Website.SSLDTO) {
|
click: function (row: Website.SSLDTO) {
|
||||||
onEdit(row);
|
onEdit(row);
|
||||||
},
|
},
|
||||||
disabled: function (row: Website.SSLDTO) {
|
show: function (row: Website.SSLDTO) {
|
||||||
return row.provider == 'selfSigned';
|
return row.provider != 'manual' && row.provider != 'selfSigned';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user