1

I have created a quick action component labelled Login that opens a new website. The problem is when the button is clicked a small white lightning component window is also show. Can i just open the website without showing the component window? enter image description here

Here is my component code

<aura:component controller="PwdMgmtLoginController" implements="force:lightningQuickAction,force:hasRecordId" >
    <aura:attribute name="recordId" type="Id" />
   <aura:handler name="init" value="{!this}" action="{!c.getLoginUrls}" />

</aura:component>
4

Unfortunately not. The best that we have right now is to immediately close the dialog with force:closeQuickAction. There will still be something like a half-second period of time where the modal will be visible, however.

({
    getLoginUrls: function(component, event, helper) {
      $A.get("e.force:closeQuickAction").fire();
      // Do rest of logic here
    }
})
  • Thank you sir, force:closeQuickAction does 99% of the work. – user51525 Feb 2 '18 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy