Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Save and continue editing" to FS settings #13658

Merged
merged 3 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added the `@stripTags` and `@trim` GraphQL directives. ([#9971](https://github.com/craftcms/cms/discussions/9971))
- Added `SK` to the list of keywords that Craft will look for when determining whether a value is sensitive and should be redacted from logs, etc. ([#3619](https://github.com/craftcms/cms/issues/3619))
- Improved the scrolling behavior for page sidebars and detail panes. ([#13637](https://github.com/craftcms/cms/issues/13637))
- Filesystem edit pages now have a “Save and continue editing” alternative submit action, and the <kbd>Command</kbd>/<kbd>Ctrl</kbd> + <kbd>S</kbd> keyboard shortcut now redirects back to the edit page. ([#13658](https://github.com/craftcms/cms/pull/13658))
- The `|replace` Twig filter now has a `regex` argument, which can be set to `false` to disable regular expression parsing. ([#13642](https://github.com/craftcms/cms/discussions/13642))
- Added `craft\events\DefineUserGroupsEvent`.
- Added `craft\services\Users::EVENT_DEFINE_DEFAULT_USER_GROUPS`. ([#12283](https://github.com/craftcms/cms/issues/12283))
Expand Down
5 changes: 5 additions & 0 deletions src/controllers/FsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ public function actionEdit(?string $handle = null, ?Fs $filesystem = null): Resp
->addCrumb(Craft::t('app', 'Filesystems'), 'settings/filesystems')
->action('fs/save')
->redirectUrl('settings/filesystems')
->addAltAction(Craft::t('app', 'Save and continue editing'), [
'redirect' => 'settings/filesystems/{handle}',
'shortcut' => true,
'retainScroll' => true,
])
->contentTemplate('settings/filesystems/_edit.twig', [
'oldHandle' => $handle,
'filesystem' => $filesystem,
Expand Down