Ghost/ghost/admin/app/components/settings/form-fields
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
..
accent-color.hbs Refactored general design settings form components 2022-02-04 16:04:58 +00:00
accent-color.js Dropped ember-concurrency-decorators dependency 2022-02-09 10:49:38 +00:00
publication-cover.hbs Fixed unsplash icon positioning in design settings 2022-03-16 08:51:14 +01:00
publication-cover.js Added unsplash button/selector to publication cover image form field 2022-02-07 12:16:57 +00:00
publication-icon.hbs Refactored general design settings form components 2022-02-04 16:04:58 +00:00
publication-icon.js Refactored general design settings form components 2022-02-04 16:04:58 +00:00
publication-logo.hbs Refactored general design settings form components 2022-02-04 16:04:58 +00:00
publication-logo.js Refactored general design settings form components 2022-02-04 16:04:58 +00:00
site-description.hbs 🐛 Fixed close button on "unsaved changes" modal not always behaving like "Stay" button 2022-04-14 12:39:10 +01:00
site-description.js Refactored general design settings form components 2022-02-04 16:04:58 +00:00