Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitccb05b8

Browse files
committed
Add more stories for deployment dropdown
1 parent185f2c0 commitccb05b8

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

‎site/src/modules/dashboard/Navbar/NavbarView.stories.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ const meta: Meta<typeof NavbarView> = {
1010
component:NavbarView,
1111
args:{
1212
user:MockUser,
13+
canViewAllUsers:true,
1314
canViewAuditLog:true,
1415
canViewDeployment:true,
15-
canViewAllUsers:true,
1616
canViewHealth:true,
17+
canViewOrganizations:true,
1718
},
1819
decorators:[withDashboardProvider],
1920
};
@@ -23,13 +24,36 @@ type Story = StoryObj<typeof NavbarView>;
2324

2425
exportconstForAdmin:Story={};
2526

27+
exportconstForAuditor: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+
exportconstForOrgAdmin:Story={
39+
args:{
40+
user:MockUser2,
41+
canViewAllUsers:false,
42+
canViewAuditLog:true,
43+
canViewDeployment:false,
44+
canViewHealth:false,
45+
canViewOrganizations:true,
46+
},
47+
};
48+
2649
exportconstForMember:Story={
2750
args:{
2851
user:MockUser2,
52+
canViewAllUsers:false,
2953
canViewAuditLog:false,
3054
canViewDeployment:false,
31-
canViewAllUsers:false,
3255
canViewHealth:false,
56+
canViewOrganizations:false,
3357
},
3458
};
3559

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp