mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-22 19:24:21 -05:00
* test: base test renderer * test: `<ConnectionStep />` * test: `<AppList /> tests` * test: `<ConnectionGuid />` * test: `<HubLayout />` * test: `<ConnectionHistory />` * test: `<ConnectionOptions />` done * test: `<Error />` done * test: `<SelectEngine />` done
9 lines
373 B
JavaScript
9 lines
373 B
JavaScript
import { OptionsToConnect } from '../constants/optionsToConnect';
|
|
|
|
export const detectDefaultConnectionStep = (info) => {
|
|
if (!info) return 0;
|
|
if (info.isWebIntegrationIdProvided) return OptionsToConnect.findIndex((x) => x.label === 'Web Integration Id');
|
|
if (info.isClientIdProvided) return OptionsToConnect.findIndex((x) => x.label === 'Client Id');
|
|
return 0;
|
|
};
|