Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2233bdc

Browse files
committed
add story for schedule button
1 parent fd7b922 commit 2233bdc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.stories.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,17 @@ WorkspaceOffLong.args = {
115115
ttl_ms: 2 * 365 * 24 * 60 * 60 * 1000, // 2 years
116116
},
117117
}
118+
119+
export const CannotEdit = Template.bind({})
120+
CannotEdit.args = {
121+
workspace: {
122+
...Mocks.MockWorkspace,
123+
124+
latest_build: {
125+
...Mocks.MockWorkspaceBuild,
126+
transition: "stop",
127+
},
128+
ttl_ms: 2 * 60 * 60 * 1000, // 2 hours
129+
},
130+
canUpdateWorkspace: false,
131+
}

0 commit comments

Comments
 (0)