added the ability to expand the models
This commit is contained in:
@@ -41,6 +41,7 @@ func handleEdit(handle *Handle) {
|
||||
NumberOfInvalidImages int `json:"number_of_invalid_images"`
|
||||
}
|
||||
|
||||
c.ShowMessage = false;
|
||||
return c.SendJSON(ReturnType{
|
||||
Classes: cls,
|
||||
HasData: has_data,
|
||||
@@ -179,7 +180,8 @@ func handleEdit(handle *Handle) {
|
||||
Layers: lay,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
c.ShowMessage = false;
|
||||
return c.SendJSON(defsToReturn)
|
||||
})
|
||||
|
||||
@@ -188,10 +190,6 @@ func handleEdit(handle *Handle) {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !c.CheckAuthLevel(1) {
|
||||
return nil
|
||||
}
|
||||
|
||||
id, err := GetIdFromUrl(c, "id")
|
||||
if err != nil {
|
||||
return c.JsonBadRequest("Model not found")
|
||||
@@ -215,7 +213,8 @@ func handleEdit(handle *Handle) {
|
||||
} else if err != nil {
|
||||
return c.Error500(err)
|
||||
}
|
||||
|
||||
|
||||
c.ShowMessage = false
|
||||
return c.SendJSON(model)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user