Skip to content

Commit

Permalink
Enable flex import in Production.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansoor-sajjad committed May 7, 2023
1 parent 634c0d6 commit d98b04e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/config/environments/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
"auth0ClientId": "h5bjgdnSSJi0JcaG3ugigtyBEXaPASQM",
"auth0Audience": "https://ror.api.dev.entur.io",
"auth0ClaimsNamespace": "https://ror.entur.io/role_assignments",
"defaultAuthMethod": "auth0",
"enableFlexImport": true
"defaultAuthMethod": "auth0"
}
3 changes: 1 addition & 2 deletions src/config/environments/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
"auth0ClientId": "AcbufyPib1kF5QOw8fgpeyqnbp2jWmLC",
"auth0Audience": "https://ror.api.entur.io",
"auth0ClaimsNamespace": "https://ror.entur.io/role_assignments",
"defaultAuthMethod": "auth0",
"enableFlexImport": false
"defaultAuthMethod": "auth0"
}
3 changes: 1 addition & 2 deletions src/config/environments/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
"auth0ClientId": "OejmGNpgYP0uTYu1DnHiloEy4FfzeW9i",
"auth0Audience": "https://ror.api.staging.entur.io",
"auth0ClaimsNamespace": "https://ror.entur.io/role_assignments",
"defaultAuthMethod": "auth0",
"enableFlexImport": true
"defaultAuthMethod": "auth0"
}
18 changes: 7 additions & 11 deletions src/screens/providers/components/DataMigrationDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ class DataMigrationDetails extends React.Component {
cleanStopPlacesChouette: 'Clean Stop place register in Chouette'
};

const enableFlexImport = `${window.config.enableFlexImport}`;

return (
<div>
<div style={{ display: 'flex', justfiyContent: 'flex-start' }}>
Expand All @@ -269,15 +267,13 @@ class DataMigrationDetails extends React.Component {
>
Import
</Button>
{enableFlexImport === 'true' && (
<Button
title={toolTips.importFlex}
color="primary"
onClick={() => this.handleImportData(true)}
>
Import flex
</Button>
)}
<Button
title={toolTips.importFlex}
color="primary"
onClick={() => this.handleImportData(true)}
>
Import flex
</Button>
</>
) : null}
<Button
Expand Down

0 comments on commit d98b04e

Please sign in to comment.