NestedFolders: Fetch access control metadata for folder view (#67786)

This commit is contained in:
Josh Hunt 2023-05-04 09:32:37 +00:00 committed by GitHub
parent fd28c8490f
commit 338e98e237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ export const browseDashboardsAPI = createApi({
baseQuery: createBackendSrvBaseQuery({ baseURL: '/api' }), baseQuery: createBackendSrvBaseQuery({ baseURL: '/api' }),
endpoints: (builder) => ({ endpoints: (builder) => ({
getFolder: builder.query<FolderDTO, string>({ getFolder: builder.query<FolderDTO, string>({
query: (folderUID) => ({ url: `/folders/${folderUID}` }), query: (folderUID) => ({ url: `/folders/${folderUID}`, params: { accesscontrol: true } }),
}), }),
getAffectedItems: builder.query<DescendantCount, DashboardTreeSelection>({ getAffectedItems: builder.query<DescendantCount, DashboardTreeSelection>({
queryFn: async (selectedItems) => { queryFn: async (selectedItems) => {