<
aura:component
implements
=
"force:lightningQuickActionWithoutHeader,flexipage:availableForRecordHome,force:hasRecordId"
>
<
aura:html
tag
=
"style"
>
.cuf-content {
padding: 0 0rem !important;
}
.slds-p-around--medium {
padding: 0rem !important;
}
.slds-modal__content{
overflow-y:hidden !important;
height:unset !important;
max-height:unset !important;
}
</
aura:html
>
<
aura:attribute
name
=
"hasError"
type
=
"Boolean"
default
=
"false"
/>
<
div
class
=
"modal-header slds-modal__header slds-size_1-of-1"
>
<
h4
class
=
"title slds-text-heading--medium"
>Delete Contacts</
h4
>
</
div
>
<
div
class
=
"slds-modal__content slds-p-around--x-small slds-align_absolute-center slds-size_1-of-1 slds-is-relative"
>
<
form
class
=
"slds-form--stacked"
>
<
aura:if
isTrue
=
"{!!v.hasError}"
>
<
div
class
=
"slds-align_absolute-center"
>
Do you want to delete all contacts?
</
div
>
<
aura:set
attribute
=
"else"
>
<
div
>
<
div
class
=
"slds-text-color_error"
>Error on Contact record deletion.
Please forward following error message to your admin:</
div
>
</
div
>
</
aura:set
>
</
aura:if
>
<
div
>
<
lightning:flow
aura:id
=
"deleteContactFlow"
onstatuschange
=
"{!c.statusChange}"
/>
</
div
>
</
form
>
</
div
>
<
div
class
=
"modal-footer slds-modal__footer slds-size_1-of-1"
>
<
lightning:button
variant
=
"Brand"
class
=
"slds-button"
label
=
"Confirm"
onclick
=
"{!c.handleConfirm}"
/>
<
lightning:button
variant
=
"Neutral"
class
=
"slds-button"
label
=
"Cancel"
onclick
=
"{!c.handleClose}"
/>
</
div
>
</
aura:component
>