Skip to content

Commit

Permalink
feat: add role selector to service account manage page
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Nov 4, 2024
1 parent 1c37150 commit 8fad91a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'

import Spinner from '@/components/common/Spinner'
import { RoleLabel } from '@/components/users/RoleLabel'
import { organisationContext } from '@/contexts/organisationContext'
import { GetServiceAccounts } from '@/graphql/queries/service-accounts/getServiceAccounts.gql'
import { userHasPermission } from '@/utils/access/permissions'
Expand All @@ -15,8 +14,8 @@ import { DeleteServiceAccountDialog } from '../_components/DeleteServiceAccountD
import { ServiceAccountTokenType } from '@/apollo/graphql'
import { Avatar } from '@/components/common/Avatar'
import { EmptyState } from '@/components/common/EmptyState'
import { humanReadableExpiry } from '@/utils/tokens'
import { DeleteServiceAccountTokenDialog } from './_components/DeleteServiceAccountTokenDialog'
import { ServiceAccountRoleSelector } from '../_components/RoleSelector'

export default function ServiceAccount({ params }: { params: { team: string; account: string } }) {
const { activeOrganisation: organisation } = useContext(organisationContext)
Expand Down Expand Up @@ -98,8 +97,8 @@ export default function ServiceAccount({ params }: { params: { team: string; acc
</div>{' '}
<div>
<h3>{account?.name}</h3>
<div>
<RoleLabel role={account.role} />
<div className="text-base">
<ServiceAccountRoleSelector account={account} />
</div>
</div>
</div>
Expand Down

0 comments on commit 8fad91a

Please sign in to comment.