fix(models): Add button, probe of managed models, delete list refresh

- ui.js: mount() now wraps non-node children in text nodes (like h()), so
  mount(el, "") no longer throws in appendChild — this is what broke the
  "Add model" form (applyDefaults cleared a status via mount(x,"")).
- probe_model: resolve managed local models too (they are synthesized into the
  registry, not [[models]]) — probing them no longer returns "model not found".
- models.js: await reload() after delete so the row is removed immediately.
This commit is contained in:
infosave2007
2026-07-09 16:13:07 +03:00
parent 196ff52f0f
commit b8d48c31f7
5 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ function row(m, meta, reload) {
try {
await api.deleteModel(m.id);
toast(t("toast.deleted"), "good");
reload();
await reload();
} catch (e) {
toast(String(e.message || e), "bad");
}