diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9301b06..59bf3ff 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "medassist-ng-frontend", - "version": "1.0.2", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "medassist-ng-frontend", - "version": "1.0.2", + "version": "1.1.0", "dependencies": { "i18next": "^24.2.2", "i18next-browser-languagedetector": "^8.0.4", diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 1c796a9..e69a518 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -354,7 +354,7 @@ function AppContent() { // Export/Import state const [exporting, setExporting] = useState(false); const [importing, setImporting] = useState(false); - const [includeSensitiveData, setIncludeSensitiveData] = useState(false); + const [showImportConfirm, setShowImportConfirm] = useState(false); const [pendingImportData, setPendingImportData] = useState(null); // Collapsed days state (manually collapsed days are persisted) @@ -788,7 +788,7 @@ function AppContent() { async function handleExport() { setExporting(true); try { - const res = await fetch(`/api/export?includeSensitive=${includeSensitiveData}`, { + const res = await fetch('/api/export?includeSensitive=true', { credentials: "include", }); if (!res.ok) throw new Error("Export failed"); @@ -2423,19 +2423,6 @@ function AppContent() {

{t('exportImport.exportTitle')}

{t('exportImport.exportDesc')}

- - {includeSensitiveData && ( -

- ⚠️ {t('exportImport.sensitiveWarning')} -

- )}