Commit d3ead1ca authored by Juorder Antonio's avatar Juorder Antonio

fix add and remove members and allowers in distribution list

parent fab81c33
module.exports = {"main":{"js":"/220021bundle.js"}}
\ No newline at end of file
module.exports = {"main":{"js":"/976919bundle.js"}}
\ No newline at end of file
......@@ -274,21 +274,22 @@ export default class PanelActions extends React.Component {
onSubmit() {
const response = {};
response.reset = this.reset;
response.target = this.props.nameFunc;
this.refs.savebutton.setAttribute('disabled', 'disabled');
this.refs.savebutton.innerHTML = 'Aplicando Cambios...';
/*this.refs.savebutton.setAttribute('disabled', 'disabled');
this.refs.savebutton.innerHTML = 'Aplicando Cambios...';*/
if (this.forAdd.length > 0) {
response.add = this.forAdd;
response['add' + Utils.titleCase(this.props.nameFunc)] = this.forAdd;
}
if (this.forRemove.length > 0) {
response.remove = this.forRemove;
response['remove' + Utils.titleCase(this.props.nameFunc)] = this.forRemove;
}
if (this.refresh.length > 0) {
/*if (this.refresh.length > 0) {
response.refresh = this.refresh;
}
}*/
this.props.onApplyChanges(response);
}
......@@ -656,7 +657,8 @@ PanelActions.propTypes = {
hasExport: React.PropTypes.bool,
showNameOnButton: React.PropTypes.bool,
onExport: React.PropTypes.func,
isEmail: React.PropTypes.bool
isEmail: React.PropTypes.bool,
nameFunc: React.PropTypes.string.isRequired
};
PanelActions.defaultProps = {
......
......@@ -267,20 +267,17 @@ export default class PanelActions extends React.Component {
onSubmit() {
const response = {};
response.reset = this.reset;
response.target = this.props.nameFunc;
this.refs.savebutton.setAttribute('disabled', 'disabled');
this.refs.savebutton.innerHTML = 'Aplicando Cambios...';
//this.refs.savebutton.setAttribute('disabled', 'disabled');
//this.refs.savebutton.innerHTML = 'Aplicando Cambios...';
if (this.forAdd.length > 0) {
response.add = this.forAdd;
response['add' + Utils.titleCase(this.props.nameFunc)] = this.forAdd;
}
if (this.forRemove.length > 0) {
response.remove = this.forRemove;
}
if (this.refresh.length > 0) {
response.refresh = this.refresh;
response['remove' + Utils.titleCase(this.props.nameFunc)] = this.forRemove;
}
if (this.props.onApplyChanges) {
......@@ -656,7 +653,8 @@ PanelActions.propTypes = {
hasExport: React.PropTypes.bool,
showNameOnButton: React.PropTypes.bool,
onExport: React.PropTypes.func,
isEmail: React.PropTypes.bool
isEmail: React.PropTypes.bool,
nameFunc: React.PropTypes.string.isRequired
};
PanelActions.defaultProps = {
......
......@@ -375,7 +375,7 @@ export function exportAsCSV(data, target, title, hasLabel) {
for (var j = 0; j < keys.length; j++) {
let col = null;
if (typeof item === 'object') {
if (typeof item === 'object' && item.attrs) {
col = status[item.attrs[keys[j]]] || item.attrs[keys[j]];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment