mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-25 01:00:13 -04: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
16 lines
464 B
JavaScript
16 lines
464 B
JavaScript
export const checkIfHistoryConnectionDisabled = ({ item, info }) => {
|
|
if (!info) return false;
|
|
|
|
if ((info.isClientIdProvided || info.isWebIntegrationIdProvided) && item.includes('localhost')) return true;
|
|
if (info.isClientIdProvided) {
|
|
if (item.includes('qlik-client-id')) return false;
|
|
return true;
|
|
}
|
|
if (info.isWebIntegrationIdProvided) {
|
|
if (item.includes('qlik-web-integration-id')) return false;
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
};
|