diff --git a/src/Components/ImagesTable/ImageLinkDirect.js b/src/Components/ImagesTable/ImageLinkDirect.js index 627aba0f..d48a53fd 100644 --- a/src/Components/ImagesTable/ImageLinkDirect.js +++ b/src/Components/ImagesTable/ImageLinkDirect.js @@ -2,6 +2,7 @@ import React from 'react'; import { Button, + Divider, Popover, Text, TextContent, @@ -16,6 +17,7 @@ import { RegionsPopover } from './RegionsPopover'; import { selectImageById } from '../../store/composesSlice'; import { resolveRelPath } from '../../Utilities/path'; +import BetaLabel from '../sharedComponents/BetaLabel'; const ImageLinkDirect = ({ imageId, isExpired, isInClonesTable }) => { const navigate = useNavigate(); @@ -51,6 +53,7 @@ const ImageLinkDirect = ({ imageId, isExpired, isInClonesTable }) => { return ; } } else if (uploadStatus.type === 'azure') { + const createdInPreview = image?.uploadOptions?.source_id; const url = 'https://portal.azure.com/#@' + image.uploadOptions.tenant_id + @@ -60,7 +63,38 @@ const ImageLinkDirect = ({ imageId, isExpired, isInClonesTable }) => { image.uploadOptions.resource_group + '/providers/Microsoft.Compute/images/' + uploadStatus.options.image_name; - return ( + return createdInPreview ? ( + Launch instance} + bodyContent={ + <> + <> + + This image was created using features only available in Preview. + + + + + Launch from Preview + + > + > + } + > + + Launch + + + ) : (
+ This image was created using features only available in Preview. +