Skip to content

Commit b0f3011

Browse files
filiptronicekgeropl
andcommitted
Make necessary permission clear
Co-authored-by: Gero Posmyk-Leinemann <[email protected]> Tool: gitpod/catfood.gitpod.cloud
1 parent 59bfc3e commit b0f3011

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

components/dashboard/src/Insights.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,16 @@ export const Insights = () => {
7575

7676
{errorMessage && (
7777
<Alert type="error" className="mt-4">
78-
{isLackingPermissions
79-
? "You don't have permission to access this organization's insights."
80-
: errorMessage instanceof Error
81-
? errorMessage.message
82-
: "An error occurred."}
78+
{isLackingPermissions ? (
79+
<>
80+
You don't have <span className="font-medium">Owner</span> permissions to access this
81+
organization's insights.
82+
</>
83+
) : errorMessage instanceof Error ? (
84+
errorMessage.message
85+
) : (
86+
"An error occurred."
87+
)}
8388
</Alert>
8489
)}
8590

0 commit comments

Comments
 (0)