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

fix: remove access column header#2976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AbhineetJain merged 2 commits intomainfromabhineetjain/2974-remove-access-column
Jul 14, 2022
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionssite/src/components/Resources/Resources.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,7 +22,6 @@ const Language = {
resourceLabel: "Resource",
agentsLabel: "Agents",
agentLabel: "Agent",
accessLabel: "Access",
}

interface ResourcesProps {
Expand DownExpand Up@@ -64,7 +63,7 @@ export const Resources: FC<ResourcesProps> = ({
<AgentHelpTooltip />
</Stack>
</TableCell>
{canUpdateWorkspace && <TableCell>{Language.accessLabel}</TableCell>}
{canUpdateWorkspace && <TableCell></TableCell>}
</TableHeaderRow>
</TableHead>
<TableBody>
Expand All@@ -80,7 +79,7 @@ export const Resources: FC<ResourcesProps> = ({
if (!agent) {
return (
<TableRow key={`${resource.id}-${agentIndex}`}>
<TableCell className={styles.resourceNameCell}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can you check if we are using this anywhere else? If not, I think we should remove theresourceNameCell from themakeStyles.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We're using it to show the border when agents exist. Removed it from the case when no agents exist.

<TableCell>
{resource.name}
<span className={styles.resourceType}>{resource.type}</span>
</TableCell>
Expand DownExpand Up@@ -164,7 +163,7 @@ const useStyles = makeStyles((theme) => ({

// Adds some left spacing
agentColumn: {
paddingLeft: `${theme.spacing(2)}px !important`,
paddingLeft: `${theme.spacing(4)}px !important`,
},

agentInfo: {
Expand All@@ -184,5 +183,6 @@ const useStyles = makeStyles((theme) => ({
display: "flex",
gap: theme.spacing(0.5),
flexWrap: "wrap",
justifyContent: "flex-end",
},
}))

[8]ページ先頭

©2009-2025 Movatter.jp