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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user