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

Commita2516b5

Browse files
fix(site): remove checkbox from ws table loader (#9441)
1 parent2377ab6 commita2516b5

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

‎site/src/pages/WorkspacesPage/WorkspacesTable.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
9797
</TableRow>
9898
</TableHead>
9999
<TableBody>
100-
{!workspaces&&<TableLoader/>}
100+
{!workspaces&&(
101+
<TableLoadercanCheckWorkspaces={canCheckWorkspaces}/>
102+
)}
101103
{workspaces&&workspaces.length===0&&(
102104
<ChooseOne>
103105
<Condcondition={isUsingFilter}>
@@ -285,18 +287,19 @@ export const UnhealthyTooltip = () => {
285287
)
286288
}
287289

288-
constTableLoader=()=>{
290+
constTableLoader=({
291+
canCheckWorkspaces,
292+
}:{
293+
canCheckWorkspaces:boolean
294+
})=>{
289295
return(
290296
<TableLoaderSkeleton>
291297
<TableRowSkeleton>
292-
<TableCell
293-
width="40%"
294-
sx={{
295-
paddingLeft:(theme)=>`${theme.spacing(1.5)} !important`,
296-
}}
297-
>
298+
<TableCellwidth="40%">
298299
<Boxsx={{display:"flex",alignItems:"center",gap:1}}>
299-
<Checkboxsize="small"disabled/>
300+
{canCheckWorkspaces&&(
301+
<Checkboxsize="small"disabledsx={{marginLeft:"-20px"}}/>
302+
)}
300303
<AvatarDataSkeleton/>
301304
</Box>
302305
</TableCell>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp