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