File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed
site/src/modules/dashboard/Navbar Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ const meta: Meta<typeof NavbarView> = {
10
10
component : NavbarView ,
11
11
args : {
12
12
user : MockUser ,
13
+ canViewAllUsers : true ,
13
14
canViewAuditLog : true ,
14
15
canViewDeployment : true ,
15
- canViewAllUsers : true ,
16
16
canViewHealth : true ,
17
+ canViewOrganizations : true ,
17
18
} ,
18
19
decorators : [ withDashboardProvider ] ,
19
20
} ;
@@ -23,13 +24,36 @@ type Story = StoryObj<typeof NavbarView>;
23
24
24
25
export const ForAdmin : Story = { } ;
25
26
27
+ export const ForAuditor : Story = {
28
+ args : {
29
+ user : MockUser2 ,
30
+ canViewAllUsers : false ,
31
+ canViewAuditLog : true ,
32
+ canViewDeployment : false ,
33
+ canViewHealth : false ,
34
+ canViewOrganizations : false ,
35
+ } ,
36
+ } ;
37
+
38
+ export const ForOrgAdmin : Story = {
39
+ args : {
40
+ user : MockUser2 ,
41
+ canViewAllUsers : false ,
42
+ canViewAuditLog : true ,
43
+ canViewDeployment : false ,
44
+ canViewHealth : false ,
45
+ canViewOrganizations : true ,
46
+ } ,
47
+ } ;
48
+
26
49
export const ForMember : Story = {
27
50
args : {
28
51
user : MockUser2 ,
52
+ canViewAllUsers : false ,
29
53
canViewAuditLog : false ,
30
54
canViewDeployment : false ,
31
- canViewAllUsers : false ,
32
55
canViewHealth : false ,
56
+ canViewOrganizations : false ,
33
57
} ,
34
58
} ;
35
59
You can’t perform that action at this time.
0 commit comments