mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
This reverts commit 145faf4400.
This commit is contained in:
@@ -915,7 +915,7 @@ export interface WorkspacesRequest extends Pagination {
|
||||
export type APIKeyScope = "all" | "application_connect"
|
||||
|
||||
// From codersdk/audit.go
|
||||
export type AuditAction = "create" | "delete" | "start" | "stop" | "write"
|
||||
export type AuditAction = "create" | "delete" | "write"
|
||||
|
||||
// From codersdk/workspacebuilds.go
|
||||
export type BuildReason = "autostart" | "autostop" | "initiator"
|
||||
@@ -975,7 +975,6 @@ export type ResourceType =
|
||||
| "template_version"
|
||||
| "user"
|
||||
| "workspace"
|
||||
| "workspace_build"
|
||||
|
||||
// From codersdk/sse.go
|
||||
export type ServerSentEventType = "data" | "error" | "ping"
|
||||
|
||||
@@ -130,11 +130,13 @@ export const AuditLogRow: React.FC<AuditLogRowProps> = ({
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
||||
{shouldDisplayDiff ? (
|
||||
<div> {isDiffOpen ? <CloseDropdown /> : <OpenDropdown />}</div>
|
||||
) : (
|
||||
<div className={styles.columnWithoutDiff}></div>
|
||||
)}
|
||||
<div
|
||||
className={
|
||||
shouldDisplayDiff ? undefined : styles.disabledDropdownIcon
|
||||
}
|
||||
>
|
||||
{isDiffOpen ? <CloseDropdown /> : <OpenDropdown />}
|
||||
</div>
|
||||
</Stack>
|
||||
|
||||
{shouldDisplayDiff && (
|
||||
@@ -188,8 +190,8 @@ const useStyles = makeStyles((theme) => ({
|
||||
color: theme.palette.text.secondary,
|
||||
whiteSpace: "nowrap",
|
||||
},
|
||||
// offset the absence of the arrow icon on diff-less logs
|
||||
columnWithoutDiff: {
|
||||
marginLeft: "24px",
|
||||
|
||||
disabledDropdownIcon: {
|
||||
opacity: 0.5,
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user