fix: NPM remote toggle auto-save, proxy resync on remote change, webhook URL as path

- Remote NPM toggle now auto-saves immediately when toggled
- Toggling npm_remote triggers proxy resync (re-creates routes with server_ip or container name)
- Webhook URL shows just the path (/api/webhook/{secret}) instead of full URL with wrong domain
- Fix tag dropdown: resolve registry ID from name before fetching tags
- Remove unused fmt import
This commit is contained in:
2026-04-05 02:27:41 +03:00
parent 195ef3e7e5
commit b54481aff8
3 changed files with 31 additions and 26 deletions
+6 -1
View File
@@ -158,7 +158,12 @@
tagsLoading = true;
try {
availableTags = await api.listRegistryTags(project.registry, project.image);
// Look up registry ID from name.
const registries = await api.listRegistries();
const reg = registries.find(r => r.name === project?.registry);
if (reg) {
availableTags = await api.listRegistryTags(reg.id, project.image);
}
} catch {
availableTags = [];
} finally {