0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

change time delay between warnings to 15min

This commit is contained in:
Gazook89
2022-10-17 21:52:48 -05:00
parent c56adcba76
commit c49be3391e

View File

@@ -379,8 +379,8 @@ const EditPage = createClass({
},
setAutosaveWarning : function(){
setTimeout(()=>this.setState({ autoSaveWarning: false }), 4000);
this.warningTimer = setTimeout(()=>{this.setState({ autoSaveWarning: true });}, 15000);
setTimeout(()=>this.setState({ autoSaveWarning: false }), 4000); // 4 seconds to display
this.warningTimer = setTimeout(()=>{this.setState({ autoSaveWarning: true });}, 900000); // 15 minutes between warnings
this.warningTimer;
},