File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ func TestUpdateStates(t *testing.T) {
268
268
t .Parallel ()
269
269
270
270
var (
271
- db = dbmock .NewMockStore (gomock .NewController (t ))
271
+ dbM = dbmock .NewMockStore (gomock .NewController (t ))
272
272
ps = pubsub .NewInMemory ()
273
273
req = & agentproto.UpdateStatsRequest {
274
274
Stats : & agentproto.Stats {
@@ -280,7 +280,7 @@ func TestUpdateStates(t *testing.T) {
280
280
AgentFn : func (context.Context ) (database.WorkspaceAgent , error ) {
281
281
return agent , nil
282
282
},
283
- Database : db ,
283
+ Database : dbM ,
284
284
Pubsub : ps ,
285
285
StatsBatcher : nil , // should not be called
286
286
TemplateScheduleStore : nil , // should not be called
Original file line number Diff line number Diff line change @@ -55,15 +55,7 @@ export const WorkspaceScheduleContainer: FC<
55
55
< button
56
56
data-testid = "schedule-icon-button"
57
57
onClick = { onClickIcon }
58
- css = { {
59
- display : "flex" ,
60
- alignItems : "center" ,
61
- background : "transparent" ,
62
- border : 0 ,
63
- padding : 0 ,
64
- fontSize : "inherit" ,
65
- lineHeight : "inherit" ,
66
- } }
58
+ css = { styles . scheduleIconButton }
67
59
>
68
60
{ icon }
69
61
</ button >
@@ -186,7 +178,6 @@ const AutoStopDisplay: FC<AutoStopDisplayProps> = ({
186
178
let activity : ReactNode = null ;
187
179
188
180
if ( status === "connected" ) {
189
- console . log ( "peepeepoopoo" ) ;
190
181
onClickScheduleIcon = ( ) => setShowControlsAnyway ( ( it ) => ! it ) ;
191
182
activity = < Pill type = "active" > Connected</ Pill > ;
192
183
@@ -314,6 +305,16 @@ export const shouldDisplayScheduleControls = (
314
305
} ;
315
306
316
307
const styles = {
308
+ scheduleIconButton : {
309
+ display : "flex" ,
310
+ alignItems : "center" ,
311
+ background : "transparent" ,
312
+ border : 0 ,
313
+ padding : 0 ,
314
+ fontSize : "inherit" ,
315
+ lineHeight : "inherit" ,
316
+ } ,
317
+
317
318
scheduleValue : {
318
319
display : "flex" ,
319
320
alignItems : "center" ,
You can’t perform that action at this time.
0 commit comments