@@ -310,6 +310,24 @@ const EditLifecycleConfiguration = ({
310310 }
311311 } ;
312312
313+ let objectVersion = "" ;
314+
315+ if ( lifecycleRule . expiration ) {
316+ if ( lifecycleRule . expiration . days > 0 ) {
317+ objectVersion = "Current Version" ;
318+ } else if ( lifecycleRule . expiration . noncurrent_expiration_days ) {
319+ objectVersion = "Non-Current Version" ;
320+ }
321+ }
322+
323+ if ( lifecycleRule . transition ) {
324+ if ( lifecycleRule . transition . days > 0 ) {
325+ objectVersion = "Current Version" ;
326+ } else if ( lifecycleRule . transition . noncurrent_transition_days ) {
327+ objectVersion = "Non-Current Version" ;
328+ }
329+ }
330+
313331 return (
314332 < ModalWrapper
315333 onClose = { ( ) => {
@@ -329,17 +347,7 @@ const EditLifecycleConfiguration = ({
329347 < Grid container >
330348 < Grid item xs = { 12 } className = { classes . formScrollable } >
331349 < Grid container spacing = { 1 } >
332- < Grid item xs = { 12 } >
333- < InputBoxWrapper
334- id = "id"
335- name = "id"
336- label = "Id"
337- value = { lifecycleRule . id }
338- onChange = { ( ) => { } }
339- disabled
340- />
341- </ Grid >
342- < Grid item xs = { 12 } >
350+ < Grid item xs = { 12 } sx = { { marginTop : "5px" } } >
343351 < FormSwitchWrapper
344352 label = "Status"
345353 indicatorLabels = { [ "Enabled" , "Disabled" ] }
@@ -352,6 +360,16 @@ const EditLifecycleConfiguration = ({
352360 } }
353361 />
354362 </ Grid >
363+ < Grid item xs = { 12 } >
364+ < InputBoxWrapper
365+ id = "id"
366+ name = "id"
367+ label = "Id"
368+ value = { lifecycleRule . id }
369+ onChange = { ( ) => { } }
370+ disabled
371+ />
372+ </ Grid >
355373 < Grid item xs = { 12 } >
356374 < RadioGroupSelector
357375 currentSelection = { ilmType }
@@ -366,6 +384,16 @@ const EditLifecycleConfiguration = ({
366384 disableOptions
367385 />
368386 </ Grid >
387+ < Grid item xs = { 12 } >
388+ < InputBoxWrapper
389+ id = "object-version"
390+ name = "object-version"
391+ label = "Object Version"
392+ value = { objectVersion }
393+ onChange = { ( ) => { } }
394+ disabled
395+ />
396+ </ Grid >
369397 { ilmType === "expiry" && lifecycleRule . expiration ?. days && (
370398 < Grid item xs = { 12 } >
371399 < InputBoxWrapper
0 commit comments