Skip to content

Commit

Permalink
Update global-modal-stack_controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrombez authored Jan 17, 2024
1 parent 66e4e4f commit 18e1ff2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions assets/dist/global-modal-stack_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,20 @@ export default class extends Controller {
}
}

if (event.detail.closeOnSuccess !== null) {
if (event.detail.closeOnSuccess
&& event.detail.closeOnSuccess !== null) {
clone.dataset.modalCloseOnSuccessValue = event.detail.closeOnSuccess
}

if (event.detail.stayOnSuccess !== null) {
if (event.detail.stayOnSuccess
&& event.detail.stayOnSuccess !== null) {
clone.dataset.modalStayOnSuccessValue = event.detail.stayOnSuccess
}

if (event.detail.relatedTurboFrames !== null && event.detail.relatedTurboFrames.length > 0) {
if (event.detail.relatedTurboFrames
&& event.detail.relatedTurboFrames !== null
&& event.detail.relatedTurboFrames.length > 0
) {
clone.dataset.modalRelatedTurboFramesValue = JSON.stringify(event.detail.relatedTurboFrames)
}

Expand Down

0 comments on commit 18e1ff2

Please sign in to comment.