Ghost/ghost/admin/lib/koenig-editor
Kevin Ansfield 7e98f1b9f4 Fixed editor cards being accessible when their availability checks failed
no issue

Using the slash menu it was possible to insert cards that shouldn't have been accessible based on their availability checks. This was happening because we were only hiding the visibility of the cards in the template rather than completely removing them from the slash command matching logic.

- added `{{card-menu-items}}` helper that combines the availability matching and snippet section addition to return a complete array of sections+items that match the current system state and post type
- added `@menuItems` argument set to the output of `{{card-menu-items}}` to the two card menu components so they are working against a pre-filtered list of menu items
  - lets us remove duplication of code that handled pushing snippets section into the menus
- removed availability check conditionals from `<KoenigMenuContent>` as the menu items passed in are now pre-filtered
2023-01-19 12:38:49 +00:00
..
addon Fixed editor cards being accessible when their availability checks failed 2023-01-19 12:38:49 +00:00
app Fixed editor cards being accessible when their availability checks failed 2023-01-19 12:38:49 +00:00
docs/specs Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
public/icons/koenig Little tweaks for header settings panel and added add icon 2021-12-15 19:09:17 +00:00
index.js Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
package.json Fixed "Could not find module 'ember-keyboard'" error thrown by gif card 2022-08-02 15:51:59 +01:00