Fix showing uninstall button twice in extension info page
In case the extensions has an available update and is obsolete at the same time, the uninstall button was shown twice. An obsolete extension is not updatable; thus, the second button for the "update" action should not be shown.
This commit is contained in:
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- (**Navigation**) Fix obsolete extensions being included in the updatable extensions info
|
- (**Navigation**) Fix obsolete extensions being included in the updatable extensions info
|
||||||
|
- (**Extensions**) Fix showing the uninstall button twice in the extension info page in case the extensions is obsolete and has a update at the same time
|
||||||
|
|
||||||
## [20260508.01] (r3136) - 2026-05-08
|
## [20260508.01] (r3136) - 2026-05-08
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export const ExtensionInfo = () => {
|
|||||||
<Meta {...extension} />
|
<Meta {...extension} />
|
||||||
<Stack sx={{ flexDirection: 'row' }}>
|
<Stack sx={{ flexDirection: 'row' }}>
|
||||||
<ActionButton {...{ ...extension, isInstalled: true, hasUpdate: false }} />
|
<ActionButton {...{ ...extension, isInstalled: true, hasUpdate: false }} />
|
||||||
{extension.hasUpdate && <ActionButton {...extension} />}
|
{extension.hasUpdate && !extension.isObsolete && <ActionButton {...extension} />}
|
||||||
</Stack>
|
</Stack>
|
||||||
<Box sx={{ px: 1 }}>
|
<Box sx={{ px: 1 }}>
|
||||||
{sources.map((source) => (
|
{sources.map((source) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user