Skip to content

Commit

Permalink
Enable for spaces and sort desc
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Jun 27, 2024
1 parent b818dfc commit f73abf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default defineComponent({
data: { value: activitiesResponse }
} = yield* call(
graphAuthenticated.activities.listActivities(
`itemid:${unref(resource).id} AND limit:${activitiesLimit}`
`itemid:${unref(resource).id} AND limit:${activitiesLimit} AND sort:desc`
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,20 +300,11 @@ export const useSideBarPanels = (): SidebarPanelExtension<SpaceResource, Resourc
if (items?.length !== 1) {
return false
}
if (isProjectSpaceResource(items[0])) {
// project space roots don't support versions
return false
}

const userIsSpaceMember =
(isProjectSpaceResource(root) && root.isMember(userStore.user)) ||
(isPersonalSpaceResource(root) && root.isOwner(userStore.user))

if (
isLocationTrashActive(router, 'files-trash-generic') ||
!userIsSpaceMember ||
isSpaceResource(items[0])
) {
if (isLocationTrashActive(router, 'files-trash-generic') || !userIsSpaceMember) {
return false
}
return true
Expand Down

0 comments on commit f73abf1

Please sign in to comment.