Loading
Keep the clone upgrade button visible when the engine reports it unavailable
Related to #755.
The clone page hid the "Upgrade clone" button whenever /status reported cloneUpgrade.available: false. That is the state of every instance without provision.pgUpgradeImage set, so a stock 4.2 install looked like it did not ship the feature.
Changes:
MainStore.isUpgradeSupported(ui/packages/shared/pages/Clone/stores/Main.ts) now gates only on theupgradeCloneendpoint existing and on the engine reportingcloneUpgradeat all. An engine older than the action and the Platform app still hide the button.- New
upgradeUnavailableReasongetter returns the engine'sreasonwhenavailableis false. - The clone page renders the button disabled with that reason in a
Tooltip. Aspanwraps the button since MUI setspointer-events: noneon a disabled button and the tooltip would never open. - README describes the disabled state.
UpgradeCloneModal still mounts only when upgradeTargetVersion is set, unchanged.
Edited by Artyom Kartasov