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: - +