This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" access="global" controller="EinsteinVision_Admin"> | |
<aura:attribute name="initialised" type="boolean" default="false" /> | |
<aura:attribute name="files" type="Object[]"/> | |
<aura:attribute name="spinnerWaiting" type="Boolean" default="false"/> | |
<aura:attribute name="image" type="String" /> | |
<aura:attribute name="imagedata" type="String" /> | |
<aura:attribute name="result" type="String" default="Need a picture"/> | |
<aura:attribute name="showResult" type="Boolean" default="false" /> | |
<div class="slds-page-header"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page > | |
<script type="text/javascript"> | |
var __sfdcSessionId = '{!GETSESSIONID()}'; | |
</script> | |
<script src="../../soap/ajax/40.0/connection.js" | |
type="text/javascript"></script> | |
<script type="text/javascript"> | |
function getMetrics() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application > | |
<c:UserFreezer /> | |
</aura:application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.THIS td { | |
padding: 3px 5px 2px 5px; | |
} | |
.THIS th { | |
padding: 3px 5px 2px 5px; | |
font-weight: bold; | |
border-bottom: 1px solid black; | |
} | |
.THIS .apply { | |
text-align: right; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(cmp, ev) { | |
cmp.set('v.Message', 'Retrieving user details'); | |
var action = cmp.get("c.GetUserDetails"); | |
var self = this; | |
action.setCallback(this, function(response) { | |
self.actionResponseHandler(response, cmp, self, self.gotUserDetails, 'Retrieved User Details'); | |
}); | |
$A.enqueueAction(action); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
helper.doInit(component, event); | |
}, | |
frozenChanged: function(component, event, helper) { | |
helper.updateCheckbox(component, event); | |
}, | |
applyChanges : function(component, event, helper) { | |
helper.applyChanges(component, helper); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component controller="UserFreezer"> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<aura:attribute name="UserDetails" type="Object" /> | |
<aura:attribute name="Message" type="String" /> | |
<table> | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Username</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ***************************************************************************** | |
* User Freezer | |
* | |
* Description: | |
* | |
* Apex controller for the Freeze Users Lightning Component. | |
* | |
* If you are the sort of person who likes reading code, BrightGen is the place | |
* for you - check out http://www.brightgen.com to see our latest vacancies. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.THIS .cell { | |
padding: 5px 5px 5px 5px; | |
} | |
.THIS .head { | |
padding: 5px 5px 5px 5px; | |
font-weight: bold; | |
} | |
.THIS.big { | |
font-size: 20px; | |
font-weight: bold; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
doInit : function(component, event, helper) { | |
helper.init(component, event); | |
}, | |
getAccounts : function(component, event, helper) { | |
helper.getAccounts(component, event); | |
} | |
}) |