From 025c86af93cb73f103f64b3a62246bc47937b938 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Thu, 26 Sep 2024 15:22:14 +0200 Subject: [PATCH] fix(admin-settings): user filters after page reload Fixes an issue where applied user filters would not be visible after page reload. --- changelog/unreleased/bugfix-user-filters-after-page-reload | 6 ++++++ packages/web-app-admin-settings/src/views/Users.vue | 2 ++ .../web-app-admin-settings/tests/unit/views/Users.spec.ts | 4 ++-- .../tests/unit/views/__snapshots__/Users.spec.ts.snap | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 changelog/unreleased/bugfix-user-filters-after-page-reload diff --git a/changelog/unreleased/bugfix-user-filters-after-page-reload b/changelog/unreleased/bugfix-user-filters-after-page-reload new file mode 100644 index 00000000000..24a6e20894b --- /dev/null +++ b/changelog/unreleased/bugfix-user-filters-after-page-reload @@ -0,0 +1,6 @@ +Bugfix: User filters after page reload + +We've fixed an issue where applied user filters would not be visible after page reload. + +https://github.com/owncloud/web/issues/11604 +https://github.com/owncloud/web/pull/11666 diff --git a/packages/web-app-admin-settings/src/views/Users.vue b/packages/web-app-admin-settings/src/views/Users.vue index d9aec693853..55c4514d367 100644 --- a/packages/web-app-admin-settings/src/views/Users.vue +++ b/packages/web-app-admin-settings/src/views/Users.vue @@ -45,6 +45,7 @@ { clientService.graphAuthenticated.users.listUsers.mockResolvedValue([mock(getDefaultUser())]) clientService.graphAuthenticated.users.getUser.mockResolvedValue(mock(getDefaultUser())) clientService.graphAuthenticated.users.editUser.mockResolvedValue(mock(getDefaultUser())) - clientService.graphAuthenticated.groups.listGroups.mockResolvedValue([]) + clientService.graphAuthenticated.groups.listGroups.mockResolvedValue([mock()]) clientService.graphAuthenticated.applications.listApplications.mockResolvedValue( getDefaultApplications() ) diff --git a/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap b/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap index cc8a6fa3f25..7c3e809e49e 100644 --- a/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap +++ b/packages/web-app-admin-settings/tests/unit/views/__snapshots__/Users.spec.ts.snap @@ -23,7 +23,7 @@ exports[`Users view > list view > renders initially warning if filters are manda
Filter:
- +
@@ -71,7 +71,7 @@ exports[`Users view > list view > renders list initially 1`] = `
Filter:
- +