Need a confirmAction here.
|
{ |
|
label: 'Detach', |
|
disabled: !instanceCan.detachDisk({ runState: disk.instanceState }) && ( |
|
<> |
|
Instance must be <span className="text-raise">stopped</span> before disk can be |
|
detached |
|
</> |
|
), |
|
onActivate() { |
|
detachDisk({ body: { disk: disk.name }, path: { instance: instance.id } }) |
|
}, |
|
}, |
Need a
confirmActionhere.console/app/pages/project/instances/instance/tabs/StorageTab.tsx
Lines 252 to 263 in 0b5220a