Skip to content

Commit afc4e23

Browse files
Restore diagnostics export mode popup and trigger download on selection
1 parent e8c4a00 commit afc4e23

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

191 KB
Binary file not shown.

folderview.plus.plg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
<!ENTITY launch "Settings/FolderViewPlus">
77
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
88
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/folderview.plus.plg">
9-
<!ENTITY version "2026.03.06.4">
10-
<!ENTITY md5 "e906454fc17b52f18e9f9e1530c1377b">
9+
<!ENTITY version "2026.03.06.5">
10+
<!ENTITY md5 "b610c5da34656583f446a7868612784c">
1111
]>
1212

1313
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon="folder-open-o" support="https://github.com/alexphillips-dev/FolderView-Plus/issues" min="7.0.0">
1414
<CHANGES>
1515

16+
###2026.03.06.5
17+
- Restore diagnostics export mode popup so users can choose `Full` or `Sanitized` export at click time.
18+
- Start diagnostics file download immediately based on the selected popup action.
19+
1620
###2026.03.06.4
1721
- Fix diagnostics export reliability by restoring direct-download behavior.
1822
- Export now defaults to sanitized diagnostics immediately and falls back to cached/latest data if live diagnostics refresh fails.

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/scripts/folderviewplus.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ const repairDiagnostics = async (action) => {
12361236
}
12371237
};
12381238

1239-
const exportDiagnostics = async (privacy = 'sanitized') => {
1239+
const exportDiagnosticsByMode = async (privacy = 'sanitized') => {
12401240
const mode = privacy === 'full' ? 'full' : 'sanitized';
12411241
let diagnostics = null;
12421242

@@ -1273,6 +1273,21 @@ const exportDiagnostics = async (privacy = 'sanitized') => {
12731273
});
12741274
};
12751275

1276+
const exportDiagnostics = () => {
1277+
swal({
1278+
title: 'Export diagnostics',
1279+
text: 'Choose export mode.\nFull includes all details. Sanitized redacts sensitive fields.',
1280+
type: 'warning',
1281+
showCancelButton: true,
1282+
confirmButtonText: 'Full export',
1283+
cancelButtonText: 'Sanitized export',
1284+
closeOnConfirm: true,
1285+
closeOnCancel: true
1286+
}, (useFull) => {
1287+
void exportDiagnosticsByMode(useFull ? 'full' : 'sanitized');
1288+
});
1289+
};
1290+
12761291
const checkForUpdatesNow = async () => {
12771292
setUpdateStatus('Checking for updates...');
12781293

0 commit comments

Comments
 (0)