forked from TryGhost/Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix Cmd-S save with cursor in slug field
refs TryGhost/Ghost#8551 - renames editor-base-controller.generateSlug to generateSlugFromTitle - moves `updateSlug` logic from PSM to editor base controller - moves editor base controller save logic into a `save` task - adds `updateSlug` and `save` into a `saveTasks` task group so that calls are queued rather than running concurrently - sets the editor controller on the PSM when accessing the new/edit routes - we use a base controller mixin so the slug/save logic is duplicated on new/edit controllers meaning we need to add a reference manually rather than relying on dependency injection - remove titleObserver checks for non-existent titleObserver
- Loading branch information
1 parent
0935508
commit 02cb276
Showing
4 changed files
with
167 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.