1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-18 06:51:29 +00:00

Added delete button to the edit page

This commit is contained in:
Scott
2016-02-19 16:11:52 -05:00
parent fd871aa04a
commit 30dab729bb
4 changed files with 37 additions and 11 deletions

View File

@@ -25,11 +25,9 @@ var HomebrewAdmin = React.createClass({
},
deleteBrew : function(brewId){
console.log('removing');
request.get('/homebrew/remove/' + brewId +'?admin_key=' + this.props.admin_key)
.send()
.end(function(err, res){
console.log('DONE');
window.location.reload();
})
},