0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 01:52:42 +00:00

Restore autosave warning to 15 minutes

This commit is contained in:
Trevor Buckner
2025-09-09 20:47:09 -04:00
parent 8706f91b58
commit 6f2c397574

View File

@@ -330,7 +330,7 @@ const EditPage = (props) => {
const resetAutoSaveWarning = () => { const resetAutoSaveWarning = () => {
setTimeout(()=>setAutoSaveWarning(false), 4000); // Hide the warning after 4 seconds setTimeout(()=>setAutoSaveWarning(false), 4000); // Hide the warning after 4 seconds
warningTimer.current = setTimeout(()=>setAutoSaveWarning(true), 3000); // 15 minutes between unsaved changes warnings warningTimer.current = setTimeout(()=>setAutoSaveWarning(true), 90000); // 15 minutes between unsaved changes warnings
}; };
const renderAutoSaveButton = () => ( const renderAutoSaveButton = () => (