Ghost/ghost/admin/tests/acceptance/settings
Kevin Ansfield 4c5144cb61 🐛 Fixed close button on "unsaved changes" modal not always behaving like "Stay" button
no issue

The close button in the unsaved changes modal used the `@close` action directly compared to the "Stay" button which used `(fn @close false)`. The close button version without explicit arguments resulted in the first argument being a `PointerEvent` instance which if checked as a modal return value as `if (shouldClose)` would evaluate as truthy therefore matching the "Leave" behaviour instead of the "Stay" behaviour.

- changed modal to explicitly call `(fn @close false)` when the close button is clicked
- updated design settings route to have an explicit `shouldLeave === true` check so default behaviour is always "Stay"
2022-04-14 12:39:10 +01:00
..
amp-test.js Fix tests 2022-02-02 10:57:34 +01:00
code-injection-test.js Fix tests 2022-02-02 10:57:34 +01:00
design-test.js 🐛 Fixed close button on "unsaved changes" modal not always behaving like "Stay" button 2022-04-14 12:39:10 +01:00
general-test.js Fixed test 2022-02-09 10:56:21 +01:00
integrations-test.js 🐛 Fixed saving of custom integrations 2022-02-21 17:54:47 +00:00
labs-test.js Fix tests 2022-02-02 10:57:34 +01:00
members-email-labs-test.js Fixed newsletter settings tests 2022-03-31 11:37:38 +01:00
members-email-test.js Created labs versions of members-email settings code 2022-03-31 11:06:21 +01:00
membership-test.js Updated Portal mock for offers (#2319) 2022-04-01 13:22:41 +02:00
navigation-test.js Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
slack-test.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
tags-test.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
unsplash-test.js Fix tests 2022-02-02 10:57:34 +01:00
zapier-test.js Fix tests 2022-02-02 10:57:34 +01:00