From c82627be60f5e232236d0b0efbcc29de1a8c39c3 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Tue, 23 Aug 2022 11:37:45 +0200 Subject: [PATCH] Added reset functions to Audit log refs. https://github.com/TryGhost/Toolbox/issues/356 - The page title in Audit log didn't reset the filters and the search value - Also, the button on the empty list screen didn't work --- .../admin/app/components/settings/audit-log/no-events.hbs | 8 ++++---- ghost/admin/app/helpers/reset-query-params.js | 5 +++++ ghost/admin/app/templates/settings/audit-log.hbs | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ghost/admin/app/components/settings/audit-log/no-events.hbs b/ghost/admin/app/components/settings/audit-log/no-events.hbs index 8ef96b7b17..69bcfac747 100644 --- a/ghost/admin/app/components/settings/audit-log/no-events.hbs +++ b/ghost/admin/app/components/settings/audit-log/no-events.hbs @@ -2,12 +2,12 @@
{{svg-jar "activity-placeholder" class="gh-members-placeholder"}} {{#if @filter}} -

No actions match the current filter

- - Show all actions +

No events match the current filter

+ + Show all events {{else}} -

No actions yet

+

No events yet

{{/if}}
\ No newline at end of file diff --git a/ghost/admin/app/helpers/reset-query-params.js b/ghost/admin/app/helpers/reset-query-params.js index 7bae1fbdd8..957865d6d0 100644 --- a/ghost/admin/app/helpers/reset-query-params.js +++ b/ghost/admin/app/helpers/reset-query-params.js @@ -25,6 +25,11 @@ export const DEFAULT_QUERY_PARAMS = { 'members-activity': { excludedEvents: null, member: null + }, + 'settings.audit-log': { + excludedEvents: null, + excludedResources: null, + user: null } }; diff --git a/ghost/admin/app/templates/settings/audit-log.hbs b/ghost/admin/app/templates/settings/audit-log.hbs index cfb12ec762..63e76b7a91 100644 --- a/ghost/admin/app/templates/settings/audit-log.hbs +++ b/ghost/admin/app/templates/settings/audit-log.hbs @@ -1,7 +1,7 @@

- Audit log + Audit log {{#if this.userRecord}} {{svg-jar "arrow-right"}} {{or this.userRecord.name this.userRecord.email}}