diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 8f256922f..5fd6d6f1a 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -156,6 +156,19 @@ const MetadataEditor = createClass({ }); }, + handleDeleteAuthor : function(author){ + if(!confirm('Are you sure you want to delete this author? They will lose all edit access to this brew.')) return; + request.put(`/api/${this.props.metadata.editId}/${author}`) + .send() + .end((err, res)=>{ + if(err) { + this.props.reportError(err); + } else { + window.location.reload(); + } + }); + }, + renderSystems : function(){ return _.map(SYSTEMS, (val)=>{ return