Added delete button to the edit page
This commit is contained in:
1 parent
fd871aa04a
commit
30dab729bb
4 files changed
+37
-11
No files matched your search
@@ -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