feat: restore legacy named playlist workflows
This commit is contained in:
@@ -997,6 +997,14 @@
|
||||
return !!value && trustedPlaylistEntries.has(value);
|
||||
}
|
||||
|
||||
function withEnabled(entry, enabled) {
|
||||
if (!trustedPlaylistEntries.has(entry) || typeof enabled !== "boolean") return null;
|
||||
if (entry.enabled === enabled) return entry;
|
||||
const replacement = Object.freeze({ ...entry, enabled });
|
||||
trustedPlaylistEntries.add(replacement);
|
||||
return replacement;
|
||||
}
|
||||
|
||||
return {
|
||||
bridgeContract,
|
||||
sourceContract,
|
||||
@@ -1028,6 +1036,7 @@
|
||||
createRestoreLoadRequest,
|
||||
createRestoreSelectionRequest,
|
||||
materializeRestoredPlaylistEntry,
|
||||
withEnabled,
|
||||
isPlaylistEntryPlayable
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user