File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
features/Volumes/VolumeDetails Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ const options: { flag: keyof Flags; label: string }[] = [
7777 label : 'VM Host Maintenance Policy' ,
7878 } ,
7979 { flag : 'volumeSummaryPage' , label : 'Volume Summary Page' } ,
80+ {
81+ flag : 'blockStorageContextualMetrics' ,
82+ label : 'Block Storage Contextual Metrics' ,
83+ } ,
8084 { flag : 'objSummaryPage' , label : 'OBJ Summary Page' } ,
8185 { flag : 'vpcIpv6' , label : 'VPC IPv6' } ,
8286] ;
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ export interface Flags {
203203 apl : boolean ;
204204 aplGeneralAvailability : boolean ;
205205 aplLkeE : boolean ;
206+ blockStorageContextualMetrics : boolean ;
206207 blockStorageEncryption : boolean ;
207208 blockStorageVolumeLimit : boolean ;
208209 cloudManagerDesignUpdatesBanner : DesignUpdatesBannerFlag ;
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ import { VolumeDetailsHeader } from './VolumeDetailsHeader';
1616export const VolumeDetails = ( ) => {
1717 const navigate = useNavigate ( ) ;
1818
19- const { volumeSummaryPage, aclpServices } = useFlags ( ) ;
19+ const { volumeSummaryPage, aclpServices, blockStorageContextualMetrics } =
20+ useFlags ( ) ;
2021 const { volumeId } = useParams ( { from : '/volumes/$volumeId' } ) ;
2122 const { data : volume , isLoading, error } = useVolumeQuery ( volumeId ) ;
2223 const { tabs, handleTabChange, tabIndex } = useTabs ( [
@@ -27,7 +28,9 @@ export const VolumeDetails = () => {
2728 {
2829 to : '/volumes/$volumeId/metrics' ,
2930 title : 'Metrics' ,
30- hide : ! aclpServices ?. blockstorage ?. metrics ?. enabled ,
31+ hide :
32+ ! aclpServices ?. blockstorage ?. metrics ?. enabled ||
33+ ! blockStorageContextualMetrics ,
3134 chip : aclpServices ?. blockstorage ?. metrics ?. beta ? < BetaChip /> : null ,
3235 } ,
3336 ] ) ;
You can’t perform that action at this time.
0 commit comments