diff --git a/client/homebrew/pages/editPage/editPage.jsx b/client/homebrew/pages/editPage/editPage.jsx
index 746f5324b..fa755aa5d 100644
--- a/client/homebrew/pages/editPage/editPage.jsx
+++ b/client/homebrew/pages/editPage/editPage.jsx
@@ -344,6 +344,19 @@ const EditPage = createClass({
}
},
+ handleAutoSave : function(){
+ this.setState((prevState)=>({
+ autoSave : !prevState.autoSave
+ }));
+ localStorage.setItem('AUTOSAVE_ON', JSON.stringify(!this.state.autoSave));
+ },
+
+ renderAutoSaveButton : function(){
+ return
+ Autosave
+ ;
+ },
+
processShareId : function() {
return this.state.brew.googleId && !this.state.brew.stubbed ?
this.state.brew.googleId + this.state.brew.shareId :
@@ -384,15 +397,7 @@ const EditPage = createClass({
{this.renderGoogleDriveIcon()}
{this.renderSaveButton()}
- {
- this.setState((prevState)=>({
- autoSave : !prevState.autoSave
- }));
- localStorage.setItem('AUTOSAVE_ON', JSON.stringify(!this.state.autoSave));
- }}>
- Autosave
-
-
+ {this.renderAutoSaveButton()}