From 298dc77b8fbe34ebaae1989346c0482b1bb4fb63 Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Thu, 7 Sep 2023 00:11:15 -0400 Subject: [PATCH 1/2] Add "Save and continue editing" to FS settings --- src/controllers/FsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/FsController.php b/src/controllers/FsController.php index 73976fb46e5..e0faa107871 100644 --- a/src/controllers/FsController.php +++ b/src/controllers/FsController.php @@ -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, From eaccc09f50b03585e3115e042aa0db4595c3cc6e Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Sun, 10 Sep 2023 13:07:19 -0700 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a80b76a8d91..595e5f61cea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 Command/Ctrl + S 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))