mirror of https://github.com/rancher/dashboard.git
Merge pull request #9714 from torchiaf/9665-provissioning-actions-error
Fix 'Scale Down' crash in cluster provisioning details page
This commit is contained in:
commit
df9c4be595
|
|
@ -806,7 +806,7 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const matchingResourceAction = resource.availableActions.find((a) => a.action === this.actionOfInterest.action);
|
const matchingResourceAction = resource.availableActions?.find((a) => a.action === this.actionOfInterest.action);
|
||||||
|
|
||||||
return matchingResourceAction?.enabled;
|
return matchingResourceAction?.enabled;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -342,6 +342,7 @@ export default {
|
||||||
poolId: pool.id,
|
poolId: pool.id,
|
||||||
mainRowKey: 'isFake',
|
mainRowKey: 'isFake',
|
||||||
pool,
|
pool,
|
||||||
|
availableActions: []
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -364,6 +365,7 @@ export default {
|
||||||
spec: { nodePoolName: np.id.replace('/', ':') },
|
spec: { nodePoolName: np.id.replace('/', ':') },
|
||||||
mainRowKey: 'isFake',
|
mainRowKey: 'isFake',
|
||||||
pool: np,
|
pool: np,
|
||||||
|
availableActions: []
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue