From f7cb659b64904fe4cb419e117bfed50be0e6cc43 Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Wed, 9 Oct 2024 08:56:42 +0200 Subject: [PATCH] add bypass resolver --- .../src/pages/installer/components/InstallDnpView.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/admin-ui/src/pages/installer/components/InstallDnpView.tsx b/packages/admin-ui/src/pages/installer/components/InstallDnpView.tsx index 251ccdb55..515ed548c 100644 --- a/packages/admin-ui/src/pages/installer/components/InstallDnpView.tsx +++ b/packages/admin-ui/src/pages/installer/components/InstallDnpView.tsx @@ -47,6 +47,7 @@ const InstallDnpView: React.FC = ({ dnp, progressLogs }) => const [userSettings, setUserSettings] = useState({} as UserSettingsAllDnps); const [bypassCoreOpt, setBypassCoreOpt] = useState(); const [bypassSignedOpt, setBypassSignedOpt] = useState(); + const [bypassResolverOpt, setBypassResolverOpt] = useState(); const [showAdvancedEditor, setShowAdvancedEditor] = useState(false); const [showSuccess, setShowSuccess] = useState(false); @@ -98,7 +99,8 @@ const InstallDnpView: React.FC = ({ dnp, progressLogs }) => userSettings: difference(settings || {}, _userSettings), options: { BYPASS_CORE_RESTRICTION: bypassCoreOpt, - BYPASS_SIGNED_RESTRICTION: bypassSignedOpt + BYPASS_SIGNED_RESTRICTION: bypassSignedOpt, + BYPASS_RESOLVER: bypassResolverOpt } }), dnpName @@ -169,6 +171,12 @@ const InstallDnpView: React.FC = ({ dnp, progressLogs }) => available: !dnp.signedSafeAll, checked: bypassSignedOpt ?? false, toggle: () => setBypassSignedOpt((x) => !x) + }, + { + name: "Bypass not compatible restriction", + available: !dnp.compatible, + checked: bypassResolverOpt ?? false, + toggle: () => setBypassResolverOpt((x) => !x) } ].filter((option) => option.available);