File tree 2 files changed +35
-0
lines changed
pages/WorkspacePage/WorkspaceActions
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -79,3 +79,17 @@ export const Updating: Story = {
79
79
workspace : Mocks . MockOutdatedWorkspace ,
80
80
} ,
81
81
} ;
82
+
83
+ export const RequireActiveVersionStarted : Story = {
84
+ args : {
85
+ workspace : Mocks . MockOutdatedRunningWorkspaceRequireActiveVersion ,
86
+ canChangeVersions : false ,
87
+ } ,
88
+ } ;
89
+
90
+ export const RequireActiveVersionStopped : Story = {
91
+ args : {
92
+ workspace : Mocks . MockOutdatedStoppedWorkspaceRequireActiveVersion ,
93
+ canChangeVersions : false ,
94
+ } ,
95
+ } ;
Original file line number Diff line number Diff line change @@ -1054,6 +1054,27 @@ export const MockOutdatedWorkspace: TypesGen.Workspace = {
1054
1054
outdated : true ,
1055
1055
} ;
1056
1056
1057
+ export const MockOutdatedRunningWorkspaceRequireActiveVersion : TypesGen . Workspace =
1058
+ {
1059
+ ...MockWorkspace ,
1060
+ id : "test-outdated-workspace-require-active-version" ,
1061
+ outdated : true ,
1062
+ template_require_active_version : true ,
1063
+ latest_build : {
1064
+ ...MockWorkspaceBuild ,
1065
+ status : "running" ,
1066
+ } ,
1067
+ } ;
1068
+
1069
+ export const MockOutdatedStoppedWorkspaceRequireActiveVersion : TypesGen . Workspace =
1070
+ {
1071
+ ...MockOutdatedRunningWorkspaceRequireActiveVersion ,
1072
+ latest_build : {
1073
+ ...MockWorkspaceBuild ,
1074
+ status : "stopped" ,
1075
+ } ,
1076
+ } ;
1077
+
1057
1078
export const MockPendingWorkspace : TypesGen . Workspace = {
1058
1079
...MockWorkspace ,
1059
1080
id : "test-pending-workspace" ,
You can’t perform that action at this time.
0 commit comments