11import { Fragment } from 'react' ;
22
3+ import { SimpleMetadataType , KeyValuePairType } from '../ui/DisplayType' ;
34import TextGrid from '../ui/TextGrid' ;
4-
5- function SimpleMetadataType ( { metadata } ) {
6- return (
7- < >
8- < TextGrid title = "Metadata" value = "" />
9- { metadata . field &&
10- metadata . field . map ( ( field ) => (
11- < TextGrid key = { field . key } title = { field . key } value = { field . value } />
12- ) ) }
13- </ >
14- ) ;
15- }
5+ import TypeArray from '../ui/TypeArray' ;
166
177function ThumbnailServiceType ( { thumbnail } ) {
188 return (
199 < >
2010 < TextGrid title = "Path" value = { thumbnail . path } />
2111 < TextGrid title = "Mode" value = { thumbnail . mode } />
12+ < TextGrid title = "state" value = { thumbnail . state } />
13+ < TextGrid title = "Last Success" value = { thumbnail . lastSuccess } />
14+ < TextGrid title = "Last Failure" value = { thumbnail . lastFailure } />
15+ < TextGrid title = "Failure Message" value = { thumbnail . failureMessage } />
2216 </ >
2317 ) ;
2418}
@@ -39,7 +33,7 @@ function FinalCutServerType({ finalcutserver }) {
3933 < TextGrid title = "Tag" value = { finalcutserver . tag } />
4034 < TextGrid title = "State" value = { finalcutserver . state } />
4135 < TextGrid title = "Description" value = { finalcutserver . description } />
42- < SimpleMetadataType metadata = { finalcutserver . metadata } />
36+ < TypeArray title = "Metadata" value = { finalcutserver . metadata } component = { SimpleMetadataType } />
4337 </ >
4438 ) ;
4539}
@@ -113,6 +107,7 @@ function TranscoderType({ transcoder }) {
113107 { /* <TextGrid title="Transcoder" value={transcoder.transcoder} /> */ }
114108 < TextGrid title = "Weight" value = { transcoder . weight } />
115109 < TextGrid title = "Max Job" value = { transcoder . maxJob } />
110+ < TypeArray title = "Resource Tag" value = { transcoder . resourceTag } component = { KeyValuePairType } />
116111 </ >
117112 ) ;
118113}
@@ -134,7 +129,7 @@ function MXFServerResourceType({ mxfserver }) {
134129 < TextGrid title = "Detect Atom" variant = "boolean" value = { mxfserver . detectAtom } />
135130 < TextGrid title = "Enforce Quota" variant = "boolean" value = { mxfserver . enforceQuota } />
136131 < TextGrid title = "File Import Pattern" value = { mxfserver . fileImportPattern } />
137- < SimpleMetadataType metadata = { mxfserver . metadata } />
132+ < TypeArray title = "Metadata" value = { mxfserver . metadata } component = { SimpleMetadataType } />
138133 </ >
139134 ) ;
140135}
0 commit comments