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:
@@ -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 = () => (
|
||||||
|
|||||||
Reference in New Issue
Block a user