Skip to content

Commit 9385fda

Browse files
authored
change: [M3-9735] - Add encryption icon to Image edit drawer (#11993)
* Add 'Encrypted' notice * Added changeset: Display encryption status with lock icon in Image Edit Drawer * Add condition to check for distributed-sites before showing encrypted label
1 parent 258b1d5 commit 9385fda

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Added
3+
---
4+
5+
Display encryption status with lock icon in Image Edit Drawer ([#11993](https://github.com/linode/manager/pull/11993))

packages/manager/src/features/Images/ImagesLanding/EditImageDrawer.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Controller, useForm } from 'react-hook-form';
77
import { NotFound } from 'src/components/NotFound';
88
import { TagsInput } from 'src/components/TagsInput/TagsInput';
99
import { useUpdateImageMutation } from 'src/queries/images';
10+
import Lock from 'src/assets/icons/lock.svg';
11+
import { Stack, Typography } from '@linode/ui';
1012

1113
import { useImageAndLinodeGrantCheck } from '../utils';
1214

@@ -102,6 +104,17 @@ export const EditImageDrawer = (props: Props) => {
102104
/>
103105
)}
104106

107+
{image?.capabilities?.includes('distributed-sites') && (
108+
<Stack direction="row" spacing={1} alignItems="center">
109+
<Lock />
110+
<Typography
111+
sx={(theme) => ({ color: theme.textColors.textAccessTable })}
112+
>
113+
Encrypted
114+
</Typography>
115+
</Stack>
116+
)}
117+
105118
<Controller
106119
render={({ field, fieldState }) => (
107120
<TextField

0 commit comments

Comments
 (0)