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;
|
||||
}
|
||||
|
||||
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;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -342,6 +342,7 @@ export default {
|
|||
poolId: pool.id,
|
||||
mainRowKey: 'isFake',
|
||||
pool,
|
||||
availableActions: []
|
||||
};
|
||||
});
|
||||
},
|
||||
|
|
@ -364,6 +365,7 @@ export default {
|
|||
spec: { nodePoolName: np.id.replace('/', ':') },
|
||||
mainRowKey: 'isFake',
|
||||
pool: np,
|
||||
availableActions: []
|
||||
}));
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue