mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-11-05 13:35:15 +00:00
rollback
This commit is contained in:
parent
3f1ac10290
commit
dffe43beee
@ -382,10 +382,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
let fetchedMetadataCache = null;
|
let fetchedMetadataCache = null;
|
||||||
let operationDefinitionCache = {}; // <<< ADD THIS LINE: Cache for fetched OperationDefinitions
|
let operationDefinitionCache = {}; // <<< ADD THIS LINE: Cache for fetched OperationDefinitions
|
||||||
|
|
||||||
const appMode = '{{ app_mode | default("standalone") | lower }}';
|
// <<< ADD THIS SECTION: Get App Mode >>>
|
||||||
const initialFhirServerUrl = '{{ app.config["HAPI_FHIR_URL"] | safe }}';
|
const appMode = '{{ app_mode | default("standalone") | lower }}'; // Get mode from Flask
|
||||||
console.log(`App Mode (Operations): ${appMode}`);
|
console.log(`App Mode (Operations): ${appMode}`);
|
||||||
console.log(`Initial FHIR Server URL from config: ${initialFhirServerUrl}`);
|
// <<< END ADD >>>
|
||||||
|
|
||||||
// --- Helper Functions ---
|
// --- Helper Functions ---
|
||||||
function updateAuthInputsUI() {
|
function updateAuthInputsUI() {
|
||||||
@ -1950,17 +1950,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
// --- Initial Page State Setup ---
|
// --- Initial Page State Setup ---
|
||||||
resourceTypesDisplayDiv.style.display = 'none';
|
resourceTypesDisplayDiv.style.display = 'none';
|
||||||
swaggerUiContainer.style.display = 'none';
|
swaggerUiContainer.style.display = 'none';
|
||||||
|
|
||||||
// Check if the initial URL from config is the default local Hapi URL
|
|
||||||
const isInitialLocalHapi = initialFhirServerUrl.startsWith('http://localhost:8080');
|
|
||||||
|
|
||||||
// Set the initial state based on the URL from Flask config
|
|
||||||
isUsingLocalHapi = isInitialLocalHapi;
|
|
||||||
if (!isUsingLocalHapi) {
|
|
||||||
// If it's a custom URL, populate the input field with it
|
|
||||||
fhirServerUrlInput.value = initialFhirServerUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
updateServerToggleUI(); // Set the initial UI state correctly based on default isUsingLocalHapi = true
|
updateServerToggleUI(); // Set the initial UI state correctly based on default isUsingLocalHapi = true
|
||||||
|
|
||||||
}); // End DOMContentLoaded Listener
|
}); // End DOMContentLoaded Listener
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user