Skip to content

Commit 0eaeeee

Browse files
Fix remaining folder editor bulk move bootstrap TDZ crash
1 parent 9e8f6d9 commit 0eaeeee

8 files changed

Lines changed: 22 additions & 10 deletions

archive/folderview.plus-2026.04.04.11.txz.sha256

Lines changed: 0 additions & 1 deletion
This file was deleted.

archive/folderview.plus-2026.04.04.12.txz.sha256

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8522572f84f5a44f9d2dba9f0cc15a986b18d1445ba3437cec042e51ff8e367a folderview.plus-2026.04.05.07.txz
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a03f830e8a5591d9718aa0cfab6ae4e35edae5f171547eb1acc232c37e3f36cd folderview.plus-2026.04.05.08.txz

folderview.plus.plg

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

1313
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon="folder-icon.png" support="https://forums.unraid.net/topic/197631-plugin-folderview-plus/" min="7.0.0">
1414
<CHANGES>
1515

16+
###2026.04.05.08
17+
- UX: Folder editor flows, previews, and bootstrap behavior.
18+
19+
20+
###2026.04.05.07
21+
- Fix: Folder editor startup no longer crashes on bulk-move-enabled builds when hydration reaches the current scope and target helpers before those Members-tab bulk move utilities finish initializing.
22+
23+
1624
###2026.04.05.06
1725
- UX: Folder editor flows, previews, and bootstrap behavior.
1826

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4329,15 +4329,19 @@ const getFolderSettingsApplyTargets = () => Object.entries(allFoldersById || {})
43294329
})
43304330
.sort((left, right) => left.name.localeCompare(right.name, undefined, { sensitivity: 'base' }));
43314331

4332-
const getMemberBulkMoveTargets = () => getFolderSettingsApplyTargets();
4332+
function getMemberBulkMoveTargets() {
4333+
return getFolderSettingsApplyTargets();
4334+
}
43334335

4334-
const describeMemberBulkMoveScope = (scope) => {
4336+
function describeMemberBulkMoveScope(scope) {
43354337
const normalized = String(scope || '').trim().toLowerCase();
43364338
const match = MEMBER_BULK_SCOPE_OPTIONS.find((entry) => entry.value === normalized);
43374339
return match ? match.label : 'Move shown';
4338-
};
4340+
}
43394341

4340-
const getCurrentMemberBulkMoveScope = () => String($('#fvMemberBulkScope').val() || 'shown').trim().toLowerCase() || 'shown';
4342+
function getCurrentMemberBulkMoveScope() {
4343+
return String($('#fvMemberBulkScope').val() || 'shown').trim().toLowerCase() || 'shown';
4344+
}
43414345

43424346
function collectCurrentMemberBulkMoveScope() {
43434347
const scope = getCurrentMemberBulkMoveScope();
@@ -4369,15 +4373,15 @@ function renderMemberBulkMoveTargets() {
43694373
}
43704374
}
43714375

4372-
const syncMemberSnapshotBaseline = () => {
4376+
function syncMemberSnapshotBaseline() {
43734377
const baseline = parseSnapshotState(initialSnapshot || computeFormSnapshot());
43744378
const current = parseSnapshotState(computeFormSnapshot());
43754379
baseline.members = Array.isArray(current.members) ? current.members : [];
43764380
initialSnapshot = JSON.stringify(baseline);
43774381
updateUnsavedIndicator();
43784382
updateSectionStateIndicators();
43794383
updateChangeSummaryPanel();
4380-
};
4384+
}
43814385

43824386
const applyMemberBulkMoveResultLocally = (targetFolderId, movedNames = []) => {
43834387
const safeTargetFolderId = String(targetFolderId || '').trim();

0 commit comments

Comments
 (0)