mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
refactor: notification module
This commit is contained in:
parent
34fa4eb204
commit
ab46d1de7e
41 changed files with 3989 additions and 2411 deletions
|
@ -133,7 +133,7 @@ func AddCert(c *gin.Context) {
|
|||
|
||||
err = cert.SyncToRemoteServer(certModel)
|
||||
if err != nil {
|
||||
notification.Error("Sync Certificate Error", err.Error())
|
||||
notification.Error("Sync Certificate Error", err.Error(), nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ func ModifyCert(c *gin.Context) {
|
|||
|
||||
err = cert.SyncToRemoteServer(certModel)
|
||||
if err != nil {
|
||||
notification.Error("Sync Certificate Error", err.Error())
|
||||
notification.Error("Sync Certificate Error", err.Error(), nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
8
api/certificate/notifications.ts
Normal file
8
api/certificate/notifications.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Auto-generated notification messages
|
||||
// Do not edit manually
|
||||
|
||||
const notifications: Record<string, string> = {
|
||||
"Sync_Certificate_Error_Error": "err.Error()",
|
||||
};
|
||||
|
||||
export default notifications;
|
Loading…
Add table
Add a link
Reference in a new issue