You need to sign in to do that
Don't have an account?
Hema Yejju
How to hide a Lightning-button based on profile
<aura:component controller="Approval"
implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<lightning:button variant="brand" label="Yes" class="slds-align_absolute-center"
title="Amount" onclick="{!c.sendEmailtouser}"
/>
sendEmailtouser : function(component,event,helper) {
component.find("YesBtn").set("v.disablebutton", true);
if (state === "SUCCESS") {
component.set('v.showButton',false);
}
implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<lightning:button variant="brand" label="Yes" class="slds-align_absolute-center"
title="Amount" onclick="{!c.sendEmailtouser}"
/>
sendEmailtouser : function(component,event,helper) {
component.find("YesBtn").set("v.disablebutton", true);
if (state === "SUCCESS") {
component.set('v.showButton',false);
}
Please refer the below link will help you.
https://developer.salesforce.com/forums/?id=9062I000000DID7QAO
If this helps, please mark it as best answer.
Thanks,
Ankaiah