I built a flow which is wrapped in Aura compoenent, the componenet is attached to a Global Action.
On default, when I click on the global action, the component opens "Minimized" in the Utility Bar, If I click on the 'Maximize' button it opens it in a modal.
I would like to reverse it, so that when I click on the global action, it automatically opens the aura component 'Maximized' meaning in modal mode.
<aura:component implements="force:lightningQuickAction" access="global" >
<aura:handler name="init" value="{!this}" action="{!c.init} "/>
<lightning:flow aura:id="flowData" onstatuschange="{!c.handleStatusChange}" />
</aura:component>
({
init : function (component) {
// Find the component whose aura:id is "flowData"
var flow = component.find("flowData");
// In that component, start your flow. Reference the flow's API Name.
flow.startFlow("Create_Admin_Ticket");
},
handleStatusChange : function (component, event) {
if(event.getParam("status") === "FINISHED") {
// Close the action panel
var dismissActionPanel = $A.get("e.force:closeQuickAction");
dismissActionPanel.fire();
}
}
})
Can someone point me in the right direction? Couldn't find anything in the documentation.