mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Make the URL dynamic in salesforce form
This commit is contained in:
parent
c19f4c7a62
commit
62fa0fa2c1
1 changed files with 5 additions and 1 deletions
|
|
@ -5,11 +5,15 @@ import { toast } from 'react-hot-toast';
|
|||
import Button from '@/_ui/Button';
|
||||
import Select from '@/_ui/Select';
|
||||
import Input from '@/_ui/Input';
|
||||
import config from 'config';
|
||||
|
||||
const Salesforce = ({ optionchanged, createDataSource, options, isSaving, selectedDataSource, workspaceConstants }) => {
|
||||
const [authStatus, setAuthStatus] = useState(null);
|
||||
const { t } = useTranslation();
|
||||
const redirectUri = `http://localhost:8082/oauth2/authorize`;
|
||||
const hostUrl = window.public_config?.TOOLJET_HOST;
|
||||
const subPathUrl = window.public_config?.SUB_PATH;
|
||||
const fullUrl = `${hostUrl}${subPathUrl ? subPathUrl : '/'}oauth2/authorize`;
|
||||
const redirectUri = fullUrl;
|
||||
const selectOptions = [
|
||||
{ value: 'v1', label: 'v1' },
|
||||
{ value: 'v2', label: 'v2' },
|
||||
|
|
|
|||
Loading…
Reference in a new issue