mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
fix(AddonDetailModal): remove install button when configureRequired
This commit is contained in:
parent
2b60b3a5f0
commit
eb394407e1
1 changed files with 4 additions and 2 deletions
|
|
@ -105,7 +105,9 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
addonDetails.remoteAddon !== null && addonDetails.remoteAddon.content.type === 'Ready' ?
|
addonDetails.remoteAddon !== null &&
|
||||||
|
addonDetails.remoteAddon.content.type === 'Ready' &&
|
||||||
|
!addonDetails.remoteAddon.content.content.manifest.behaviorHints.configurationRequired ?
|
||||||
{
|
{
|
||||||
|
|
||||||
className: styles['install-button'],
|
className: styles['install-button'],
|
||||||
|
|
@ -131,7 +133,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
null;
|
null;
|
||||||
return toggleButton !== null ? configureButton ? [cancelButton, configureButton, toggleButton] : [cancelButton, toggleButton] : [cancelButton];
|
return configureButton && toggleButton ? [cancelButton, configureButton, toggleButton] : configureButton ? [cancelButton, configureButton] : toggleButton ? [cancelButton, toggleButton] : [cancelButton];
|
||||||
}, [addonDetails, onCloseRequest]);
|
}, [addonDetails, onCloseRequest]);
|
||||||
const modalBackground = React.useMemo(() => {
|
const modalBackground = React.useMemo(() => {
|
||||||
return addonDetails.remoteAddon?.content.type === 'Ready' ? addonDetails.remoteAddon.content.content.manifest.background : null;
|
return addonDetails.remoteAddon?.content.type === 'Ready' ? addonDetails.remoteAddon.content.content.manifest.background : null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue