diff --git a/web/app/components/plugins/install-plugin/install-bundle/steps/install.tsx b/web/app/components/plugins/install-plugin/install-bundle/steps/install.tsx index 223c561d84..f2bd2e86bf 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/steps/install.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/steps/install.tsx @@ -15,6 +15,7 @@ type Props = { onInstalled: (plugins: Plugin[], installStatus: InstallStatusResponse[]) => void onCancel: () => void isFromMarketPlace?: boolean + isHideButton?: boolean } const Install: FC = ({ @@ -22,6 +23,7 @@ const Install: FC = ({ onInstalled, onCancel, isFromMarketPlace, + isHideButton, }) => { const { t } = useTranslation() const [selectedPlugins, setSelectedPlugins] = React.useState([]) @@ -82,22 +84,25 @@ const Install: FC = ({ {/* Action Buttons */} -
- {!canInstall && ( - + )} + - )} - -
+ + )} + ) } diff --git a/web/app/components/plugins/install-plugin/install-bundle/steps/installed.tsx b/web/app/components/plugins/install-plugin/install-bundle/steps/installed.tsx index 6b339bdd8c..8f267cafcc 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/steps/installed.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/steps/installed.tsx @@ -13,12 +13,14 @@ type Props = { list: Plugin[] installStatus: InstallStatusResponse[] onCancel: () => void + isHideButton?: boolean } const Installed: FC = ({ list, installStatus, onCancel, + isHideButton, }) => { const { t } = useTranslation() const { getIconUrl } = useGetIcon() @@ -45,15 +47,17 @@ const Installed: FC = ({ {/* Action Buttons */} -
- -
+ {!isHideButton && ( +
+ +
+ )} ) }