Skip to content

Commit

Permalink
Feat: Show workspace ID for server admins (#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikehrn authored Feb 4, 2025
1 parent b50f1fa commit 9dd5989
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend-2/pages/settings/user/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<hr class="my-6 md:my-8 border-outline-2" />
<SettingsUserProfileDeleteAccount :user="user" />
<hr class="my-6 md:my-8 border-outline-2" />
<div class="text-xs text-foreground-2 w-full flex flex-col space-y-2">
<div class="text-body-2xs text-foreground-2 w-full flex flex-col space-y-2">
<div class="flex">
User ID: #{{ user.id }}
<ClipboardIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
</div>
</div>
</template>
<template v-if="isServerAdmin">
<hr class="mb-6 mt-8 border-outline-2" />
<p class="text-body-2xs text-foreground-2">
Workspace ID: #{{ workspaceResult?.workspaceBySlug?.id }}
</p>
</template>
</div>

<SettingsWorkspacesGeneralLeaveDialog
Expand Down Expand Up @@ -221,6 +227,7 @@ const config = useRuntimeConfig()
const { hasSsoEnabled, needsSsoLogin } = useWorkspaceSsoStatus({
workspaceSlug: computed(() => workspaceResult.value?.workspaceBySlug?.slug || '')
})
const { isAdmin: isServerAdmin } = useActiveUser()
const name = ref('')
const slug = ref('')
Expand Down

0 comments on commit 9dd5989

Please sign in to comment.