fix(deploymentlog): show the checkbox only when container exsiting previous
This commit is contained in:
@@ -9,6 +9,10 @@ const useOpenPlayground = () => {
|
||||
const plugin = getGPUStackPlugin();
|
||||
|
||||
const generateModelName = (row: any) => {
|
||||
// if has plugin, it means is enterpise edition, we need to generate the model name with org name prefix, otherwise, we just use the model name
|
||||
if (!plugin) {
|
||||
return row.name;
|
||||
}
|
||||
const org = getOrgById(row.owner_principal_id) ?? getCurrentOrg();
|
||||
|
||||
// The platform Org is always named ``default`` (backend constant
|
||||
@@ -30,8 +34,8 @@ const useOpenPlayground = () => {
|
||||
// ``owner_principal_id`` (an org principal id); fall back to the Org the
|
||||
// caller is currently acting under for the admin "All" view, where the
|
||||
// row's owner still resolves via the platform-wide org cache.
|
||||
// if has plugin, it means is enterpise edition, we need to generate the model name with org name prefix, otherwise, we just use the model name
|
||||
const rawModel = plugin ? generateModelName(row) : row.name;
|
||||
|
||||
const rawModel = generateModelName(row);
|
||||
const modelName = encodeURIComponent(rawModel);
|
||||
|
||||
for (const [category, path] of Object.entries(categoryToPathMap)) {
|
||||
|
||||
Reference in New Issue
Block a user