{"size": 823, "ext": "js", "max_stars_repo_path": "examples/helloBadge/aura/helloBadge/helloBadgeController.js", "max_stars_repo_name": "maxsteel11hour/Strike-Components", "max_stars_repo_stars_event_min_datetime": "2017-03-03T18:44:30.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-17T09:47:33.000Z", "max_issues_repo_path": "examples/helloBadge/aura/helloBadge/helloBadgeController.js", "max_issues_repo_name": "maxsteel11hour/Strike-Components", "max_issues_repo_issues_event_min_datetime": "2017-02-28T20:32:43.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-14T22:23:35.000Z", "max_forks_repo_path": "examples/helloBadge/aura/helloBadge/helloBadgeController.js", "max_forks_repo_name": "maxsteel11hour/Strike-Components", "max_forks_repo_forks_event_min_datetime": "2017-02-28T14:44:41.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-30T11:09:58.000Z"}
{"max_stars_count": 193, "max_issues_count": 222, "max_forks_count": 145, "avg_line_length": 34.2916666667, "max_line_length": 82, "alphanum_fraction": 0.5006075334}
({
	init : function(component, event, helper) {
        var action = component.get('c.determineIfOwned');
        action.setParams({
            recordId: component.get('v.recordId')
        });
        
        action.setCallback(this, function(response){
            var isOwner = response.getReturnValue(); 
            console.log('********** made it back ' + isOwner);
            component.set('v.loadBadge', true);
            
            if(isOwner){
                component.set('v.label', 'You are the owner of this account');
                component.set('v.theme', 'success');
            } else {
                component.set('v.label', 'You are not the owner of this account');
                component.set('v.theme', 'warning');
            }
        });
        
        $A.enqueueAction(action);
	}
})