Skip to content

Commit 726c2fd

Browse files
Hide environment deletion option (#1357)
2 parents 0ef1f13 + 0e2eb03 commit 726c2fd

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/components/Admin/Environments/index.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { FeatureFlag } from "../../../types";
2626
import { sortEnvironments } from "../../common/IssuesReport/utils";
2727
import { Pagination } from "../../common/v3/Pagination";
2828
import { ConfirmationDialog } from "../../RecentActivity/ConfirmationDialog";
29-
import { ActionsMenuButton } from "./ActionsMenuButton";
3029
import { CreateEnvironmentSidebarOverlay } from "./CreateEnvironmentSidebarOverlay";
3130
import * as s from "./styles";
3231
import type { ColumnMeta } from "./types";
@@ -63,7 +62,7 @@ export const Environments = () => {
6362
columnHelper.accessor("name", {
6463
header: "Name",
6564
meta: {
66-
width: isEnvironmentLastActiveTimestampEnabled ? "60%" : "80%",
65+
width: isEnvironmentLastActiveTimestampEnabled ? "70%" : "90%",
6766
minWidth: 60
6867
},
6968
cell: (info) => {
@@ -102,19 +101,19 @@ export const Environments = () => {
102101
const value = info.getValue();
103102
return <s.EnvironmentType>{value}</s.EnvironmentType>;
104103
}
105-
}),
106-
columnHelper.accessor((row) => row, {
107-
header: "Actions",
108-
meta: {
109-
width: "10%",
110-
minWidth: 60,
111-
textAlign: "right"
112-
},
113-
cell: (info) => {
114-
const value = info.getValue();
115-
return <ActionsMenuButton environment={value} />;
116-
}
117104
})
105+
// columnHelper.accessor((row) => row, {
106+
// header: "Actions",
107+
// meta: {
108+
// width: "10%",
109+
// minWidth: 60,
110+
// textAlign: "right"
111+
// },
112+
// cell: (info) => {
113+
// const value = info.getValue();
114+
// return <ActionsMenuButton environment={value} />;
115+
// }
116+
// })
118117
];
119118

120119
const table = useReactTable({

src/components/Admin/Environments/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const TableHeaderCell = styled.div`
4545
4646
&:last-child {
4747
padding-right: 18px;
48+
text-align: right;
4849
}
4950
`;
5051

0 commit comments

Comments
 (0)