I have an LWC component that gets triggered via a quick action. I want to refresh the page from where the quick action is launched when someone clicks on the 'X' icon. I'm not able to find any event for this close action that I can handle in my JavaScript.
HTML:
<!-- Custom Header with Icon and Title -->
<lightning-modal-header label="Quickbook Invoice Generation">
</lightning-modal-header>
<!-- Conditional Rendering of the First Card (Download Invoice) -->
<template if:true={displayDownloadButton}>
<lightning-card>
<!-- Description Text -->
<div class="slds-p-horizontal_medium slds-p-bottom_small slds-text-body_regular slds-text-align_center">
You can download your invoice by clicking the button below.
</div>
<!-- Download Button with Styling -->
<div class="slds-align_absolute-center slds-p-vertical_small">
<lightning-button
label="Download Invoice"
variant="brand"
icon-name="utility:download"
icon-position="left"
onclick={handleDownloadClick}>
</lightning-button>
</div>
</lightning-card>
</template>
<!-- Conditional Rendering of the Second Card in Progress -->
<template if:false={displayDownloadButton}>
<lightning-card>
<!-- Description Text -->
<div class="slds-p-horizontal_medium slds-p-bottom_small slds-text-body_regular slds-text-align_center">
Invoice Generation is in progress.
</div>
</lightning-card>
</template>