Skip to content

modals/settings-recovery-copies

A modal that lists the recovery copies of a plugin’s data.json kept on this device, and lets the user pick one to restore, or, for a copy that is not valid JSON, to copy its raw text for a repair by hand.

Interface Description
SelectSettingsRecoveryCopyParams Parameters for selectSettingsRecoveryCopy.
SettingsRecoveryCopySelection The user’s choice in the recovery copies modal.
Function Description
formatKeptAt Formats when a recovery copy was kept, in the user’s locale.
selectSettingsRecoveryCopy Lists recovery copies and lets the user pick one to restore, or one whose text to copy when it cannot be restored as it is.
Enum Description
SettingsRecoveryCopyAction What the user chose to do with a recovery copy.
Variable Description
SETTINGS_RECOVERY_COPY_PREVIEW_LENGTH The longest preview of a copy’s raw text the modal shows, in characters. The rest is cut off with an ellipsis.