@@ -339,10 +339,8 @@ export default class ParseApp {
339
339
// if (new Date() - this.settings.lastFetched < 60000) {
340
340
// return Parse.Promise.as(this.settings.fields);
341
341
// }
342
- //TODO: UNCOMMENT BELOW LINES BEFORE DEPLOY
343
342
let path = '/apps/' + this . slug + '/dashboard_ajax/settings' ;
344
343
return AJAX . get ( path ) . then ( ( fields ) => {
345
- //const fields = {"fields":{"owner_email":"charles@back 4app.com","owner_name":"[email protected] ","collaborators":[{"id":"5ed78cb2-29f5-4edb-9d3f-0ee2bcd2a73c","userName":null,"userEmail":"community@back 4app.com"}],"urls":[],"gcm_credentials":[],"pricing_plan":{} }};
346
344
for ( let f in fields ) {
347
345
this . settings . fields [ f ] = fields [ f ] ;
348
346
this . settings . lastFetched = new Date ( ) ;
@@ -488,21 +486,18 @@ export default class ParseApp {
488
486
}
489
487
490
488
removeCollaboratorById ( id ) {
491
- console . log ( 'removeCollaboratorById' , id ) ;
492
489
let path = '/apps/' + this . slug + '/collaborations/' + id . toString ( ) ;
493
490
let promise = AJAX . del ( path )
494
491
promise . then ( ( ) => {
495
492
//TODO: this currently works because everything that uses collaborators
496
493
// happens to re-render after this call anyway, but really the collaborators
497
494
// should be updated properly in a store or AppsManager or something
498
495
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 ) ;
500
496
} ) ;
501
497
return promise ;
502
498
}
503
499
504
500
editCollaboratorById ( id , featuresPermission ) {
505
- console . log ( 'editCollaboratorById' , id ) ;
506
501
let path = '/apps/' + this . slug + '/collaborations/edit/' + id . toString ( ) ;
507
502
let promise = axios . post ( path , { featuresPermission } )
508
503
promise . then ( ( ) => {
0 commit comments