added the ability to expand the models

This commit is contained in:
2024-04-08 14:17:13 +01:00
parent 274d7d22aa
commit de0b430467
15 changed files with 1086 additions and 197 deletions

View File

@@ -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)
})
}