mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 16:51:16 +08:00

Prior to this fix the `swipe` modifier could not be disabled and we were not using the `this.dimissable` property to apply/not apply it. This commit adds a new `enabled` param to the `swipe` modifier, which is used in modals with the value of `this.dismissable`. Note this commit also adds tests for this modifier.