fix typo and add render (#410)
This commit is contained in:
parent
a5672bc1b3
commit
a6b160caed
|
@ -20,7 +20,7 @@ func resourceSearchGet(c *gin.Context) {
|
||||||
|
|
||||||
type containerSyncForm struct {
|
type containerSyncForm struct {
|
||||||
Name string `json:"name" binding:"required"`
|
Name string `json:"name" binding:"required"`
|
||||||
Type string `json:"type" binding:"type"`
|
Type string `json:"type" binding:"required"`
|
||||||
Items []v1ContainersRegisterItem `json:"items"`
|
Items []v1ContainersRegisterItem `json:"items"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ func v1ContainerSyncPost(c *gin.Context) {
|
||||||
|
|
||||||
count := len(sf.Items)
|
count := len(sf.Items)
|
||||||
if count == 0 {
|
if count == 0 {
|
||||||
|
renderMessage(c, "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue