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"}} module.exports = {"main":{"js":"/976919bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -274,21 +274,22 @@ export default class PanelActions extends React.Component { ...@@ -274,21 +274,22 @@ export default class PanelActions extends React.Component {
onSubmit() { onSubmit() {
const response = {}; const response = {};
response.reset = this.reset; response.reset = this.reset;
response.target = this.props.nameFunc;
this.refs.savebutton.setAttribute('disabled', 'disabled'); /*this.refs.savebutton.setAttribute('disabled', 'disabled');
this.refs.savebutton.innerHTML = 'Aplicando Cambios...'; this.refs.savebutton.innerHTML = 'Aplicando Cambios...';*/
if (this.forAdd.length > 0) { if (this.forAdd.length > 0) {
response.add = this.forAdd; response['add' + Utils.titleCase(this.props.nameFunc)] = this.forAdd;
} }
if (this.forRemove.length > 0) { 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; response.refresh = this.refresh;
} }*/
this.props.onApplyChanges(response); this.props.onApplyChanges(response);
} }
...@@ -656,7 +657,8 @@ PanelActions.propTypes = { ...@@ -656,7 +657,8 @@ PanelActions.propTypes = {
hasExport: React.PropTypes.bool, hasExport: React.PropTypes.bool,
showNameOnButton: React.PropTypes.bool, showNameOnButton: React.PropTypes.bool,
onExport: React.PropTypes.func, onExport: React.PropTypes.func,
isEmail: React.PropTypes.bool isEmail: React.PropTypes.bool,
nameFunc: React.PropTypes.string.isRequired
}; };
PanelActions.defaultProps = { PanelActions.defaultProps = {
......
...@@ -267,20 +267,17 @@ export default class PanelActions extends React.Component { ...@@ -267,20 +267,17 @@ export default class PanelActions extends React.Component {
onSubmit() { onSubmit() {
const response = {}; const response = {};
response.reset = this.reset; response.reset = this.reset;
response.target = this.props.nameFunc;
this.refs.savebutton.setAttribute('disabled', 'disabled'); //this.refs.savebutton.setAttribute('disabled', 'disabled');
this.refs.savebutton.innerHTML = 'Aplicando Cambios...'; //this.refs.savebutton.innerHTML = 'Aplicando Cambios...';
if (this.forAdd.length > 0) { if (this.forAdd.length > 0) {
response.add = this.forAdd; response['add' + Utils.titleCase(this.props.nameFunc)] = this.forAdd;
} }
if (this.forRemove.length > 0) { if (this.forRemove.length > 0) {
response.remove = this.forRemove; response['remove' + Utils.titleCase(this.props.nameFunc)] = this.forRemove;
}
if (this.refresh.length > 0) {
response.refresh = this.refresh;
} }
if (this.props.onApplyChanges) { if (this.props.onApplyChanges) {
...@@ -656,7 +653,8 @@ PanelActions.propTypes = { ...@@ -656,7 +653,8 @@ PanelActions.propTypes = {
hasExport: React.PropTypes.bool, hasExport: React.PropTypes.bool,
showNameOnButton: React.PropTypes.bool, showNameOnButton: React.PropTypes.bool,
onExport: React.PropTypes.func, onExport: React.PropTypes.func,
isEmail: React.PropTypes.bool isEmail: React.PropTypes.bool,
nameFunc: React.PropTypes.string.isRequired
}; };
PanelActions.defaultProps = { PanelActions.defaultProps = {
......
...@@ -375,7 +375,7 @@ export function exportAsCSV(data, target, title, hasLabel) { ...@@ -375,7 +375,7 @@ export function exportAsCSV(data, target, title, hasLabel) {
for (var j = 0; j < keys.length; j++) { for (var j = 0; j < keys.length; j++) {
let col = null; let col = null;
if (typeof item === 'object') { if (typeof item === 'object' && item.attrs) {
col = status[item.attrs[keys[j]]] || item.attrs[keys[j]]; 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