Skip to content

Commit be44fe4

Browse files
committed
Refactor
1 parent a2da0af commit be44fe4

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/components/PermissionsCollaboratorDialog/PermissionsCollaboratorDialog.react.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ export default class PermissionsCollaboratorDialog extends React.Component {
207207
permissions = this.state.customPermissions
208208
this.setState({ isDefault: false })
209209
}
210-
console.log('permissions', permissions)
211210
this.props.onConfirm(permissions)
212211
}}
213212
/>

src/dashboard/Settings/Collaborators.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default class Collaborators extends React.Component {
8484
}
8585

8686
handleDelete(collaborator) {
87+
console.log('this.props.collaborators', this.props.collaborators);
8788
let newCollaborators = this.props.collaborators.filter(oldCollaborator => oldCollaborator.userEmail !== collaborator.userEmail);
8889
this.props.onRemove(collaborator, newCollaborators);
8990
}

src/lib/ParseApp.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,8 @@ export default class ParseApp {
339339
// if (new Date() - this.settings.lastFetched < 60000) {
340340
// return Parse.Promise.as(this.settings.fields);
341341
// }
342-
//TODO: UNCOMMENT BELOW LINES BEFORE DEPLOY
343342
let path = '/apps/' + this.slug + '/dashboard_ajax/settings';
344343
return AJAX.get(path).then((fields) => {
345-
//const fields = {"fields":{"owner_email":"charles@back4app.com","owner_name":"[email protected]","collaborators":[{"id":"5ed78cb2-29f5-4edb-9d3f-0ee2bcd2a73c","userName":null,"userEmail":"community@back4app.com"}],"urls":[],"gcm_credentials":[],"pricing_plan":{}}};
346344
for (let f in fields) {
347345
this.settings.fields[f] = fields[f];
348346
this.settings.lastFetched = new Date();
@@ -488,21 +486,18 @@ export default class ParseApp {
488486
}
489487

490488
removeCollaboratorById(id) {
491-
console.log('removeCollaboratorById', id);
492489
let path = '/apps/' + this.slug + '/collaborations/' + id.toString();
493490
let promise = AJAX.del(path)
494491
promise.then(() => {
495492
//TODO: this currently works because everything that uses collaborators
496493
// happens to re-render after this call anyway, but really the collaborators
497494
// should be updated properly in a store or AppsManager or something
498495
this.settings.fields.fields.collaborators = this.settings.fields.fields.collaborators.filter(c => c.id != id);
499-
console.log('this.settings.fields.fields.collaborators', this.settings.fields.fields.collaborators);
500496
});
501497
return promise;
502498
}
503499

504500
editCollaboratorById(id, featuresPermission) {
505-
console.log('editCollaboratorById', id);
506501
let path = '/apps/' + this.slug + '/collaborations/edit/' + id.toString();
507502
let promise = axios.post(path, { featuresPermission })
508503
promise.then(() => {

0 commit comments

Comments
 (0)