diff --git a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx index 71ddb5b7ff..6e768a935e 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx @@ -41,6 +41,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor const [type, setType] = useState<'iframe' | 'ws'>('iframe') const [location, setLocation] = useState<'sidePanel' | 'mainPanel' | 'none'>('sidePanel') const [methods, setMethods] = useState('') + const [canactivate, setCanactivate] = useState('') useEffect(() => { const storagePlugin:FormStateProps = localStorage.getItem('plugins/local') ? JSON.parse(localStorage.getItem('plugins/local')) : defaultProfile @@ -73,7 +74,8 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor url: url, type: type, location: location, - icon: 'assets/img/localPlugin.webp' + icon: 'assets/img/localPlugin.webp', + canActivate: typeof canactivate === 'string' ? canactivate.split(',').filter(val => val) : [] } const localPlugin = type === 'iframe' ? new IframePlugin(initialState) : new WebsocketPlugin(initialState) localPlugin.profile.hash = `local-${name}` @@ -122,14 +124,24 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor placeholder="Name in the header" />
- + setMethods(e.target.value)} value={ methods } id="plugin-methods" data-id="localPluginMethods" - placeholder="Name in the header" /> + placeholder="Methods" /> +
+
+ + setCanactivate(e.target.value)} + value={ canactivate } + id="plugin-canactivate" + data-id="localPluginCanActivate" + placeholder="Plugin names" />