File tree 1 file changed +12
-9
lines changed
site/src/pages/WorkspacesPage
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
97
97
</ TableRow >
98
98
</ TableHead >
99
99
< TableBody >
100
- { ! workspaces && < TableLoader /> }
100
+ { ! workspaces && (
101
+ < TableLoader canCheckWorkspaces = { canCheckWorkspaces } />
102
+ ) }
101
103
{ workspaces && workspaces . length === 0 && (
102
104
< ChooseOne >
103
105
< Cond condition = { isUsingFilter } >
@@ -285,18 +287,19 @@ export const UnhealthyTooltip = () => {
285
287
)
286
288
}
287
289
288
- const TableLoader = ( ) => {
290
+ const TableLoader = ( {
291
+ canCheckWorkspaces,
292
+ } : {
293
+ canCheckWorkspaces : boolean
294
+ } ) => {
289
295
return (
290
296
< TableLoaderSkeleton >
291
297
< TableRowSkeleton >
292
- < TableCell
293
- width = "40%"
294
- sx = { {
295
- paddingLeft : ( theme ) => `${ theme . spacing ( 1.5 ) } !important` ,
296
- } }
297
- >
298
+ < TableCell width = "40%" >
298
299
< Box sx = { { display : "flex" , alignItems : "center" , gap : 1 } } >
299
- < Checkbox size = "small" disabled />
300
+ { canCheckWorkspaces && (
301
+ < Checkbox size = "small" disabled sx = { { marginLeft : "-20px" } } />
302
+ ) }
300
303
< AvatarDataSkeleton />
301
304
</ Box >
302
305
</ TableCell >
You can’t perform that action at this time.
0 commit comments