mirror of https://github.com/rancher/ui.git
UI upgrade button didn't work for catalog apps https://github.com/rancher/rancher/issues/17573
This commit is contained in:
parent
200ec9b87d
commit
b72aa29e72
|
|
@ -117,8 +117,16 @@ export function parseHelmExternalId(externalId) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
out.templateId = `${ out.catalog }-${ out.template }`;
|
let catalog = out.catalog
|
||||||
out.templateVersionId = `${ out.catalog }-${ out.template }-${ out.version }`;
|
|
||||||
|
if ( catalog.indexOf('/') !== -1 ) {
|
||||||
|
catalog = catalog.replace('/', ':');
|
||||||
|
} else {
|
||||||
|
catalog = `cattle-global-data:${ catalog }`;
|
||||||
|
}
|
||||||
|
|
||||||
|
out.templateId = `${ catalog }-${ out.template }`;
|
||||||
|
out.templateVersionId = `${ catalog }-${ out.template }-${ out.version }`;
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue