mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-09-17 14:25:02 +00:00
rollback
This commit is contained in:
parent
3f1ac10290
commit
dffe43beee
@ -382,10 +382,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
let fetchedMetadataCache = null;
|
||||
let operationDefinitionCache = {}; // <<< ADD THIS LINE: Cache for fetched OperationDefinitions
|
||||
|
||||
const appMode = '{{ app_mode | default("standalone") | lower }}';
|
||||
const initialFhirServerUrl = '{{ app.config["HAPI_FHIR_URL"] | safe }}';
|
||||
// <<< ADD THIS SECTION: Get App Mode >>>
|
||||
const appMode = '{{ app_mode | default("standalone") | lower }}'; // Get mode from Flask
|
||||
console.log(`App Mode (Operations): ${appMode}`);
|
||||
console.log(`Initial FHIR Server URL from config: ${initialFhirServerUrl}`);
|
||||
// <<< END ADD >>>
|
||||
|
||||
// --- Helper Functions ---
|
||||
function updateAuthInputsUI() {
|
||||
@ -1950,17 +1950,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
// --- Initial Page State Setup ---
|
||||
resourceTypesDisplayDiv.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
|
||||
|
||||
}); // End DOMContentLoaded Listener
|
||||
|
Loading…
x
Reference in New Issue
Block a user