@@ -89,6 +89,7 @@ export default function EditRecords() {
89
89
} } id = { record . id == erdData . data . selectedRecordId ? 'flash-it' : null } >
90
90
< div className = "px-4 py-5 sm:p-6" >
91
91
{ erdData . data . attributes . map ( ( attribute ) => ( < Fragment key = { attribute . id } >
92
+
92
93
< div >
93
94
< div className = "font-semibold text-sm text-gray-800" >
94
95
< div className = "flex flex-row items-center" >
@@ -98,26 +99,32 @@ export default function EditRecords() {
98
99
< div className = "text-gray-800 text-sm mb-4 overflow-anywhere flex" >
99
100
{ attribute . dataType == DataTypeEnum . EMBEDDING_LIST ? ( < div className = "flex flex-col gap-y-1 divide-y w-full" >
100
101
{ record . data [ attribute . name ] . map ( ( item , subKey ) => ( < div key = { subKey } className = "pt-1" >
101
- { ( record . id == erdData . editRecordId && ! attribute . isPrimaryKey ) ? < EditField attribute = { attribute } record = { record } subKey = { subKey } erdData = { erdData } setErdData = { ( erdData ) => setErdData ( erdData ) } /> : < >
102
- { item != null && item !== '' ? ( < span className = "whitespace-pre-wrap" >
103
- < span > { item } </ span >
104
- </ span > ) : ( < NotPresentInRecord /> ) }
105
- </ > }
102
+ { ( record . id == erdData . editRecordId && ! attribute . isPrimaryKey ) ?
103
+ < EditField attribute = { attribute } record = { record } subKey = { subKey } erdData = { erdData } setErdData = { ( erdData ) => setErdData ( erdData ) } /> : < >
104
+ { item != null && item !== '' ? ( < span className = "whitespace-pre-wrap" style = { { wordBreak : 'break-word' } } >
105
+ < span > { item } </ span >
106
+ </ span > ) : ( < NotPresentInRecord /> ) }
107
+ </ > }
106
108
</ div > ) ) }
107
- </ div > ) : ( < >
108
- { ( record . id == erdData . editRecordId && ! attribute . isPrimaryKey ) ? < EditField attribute = { attribute } record = { record } erdData = { erdData } setErdData = { ( erdData ) => setErdData ( erdData ) } /> : < >
109
- { record . data [ attribute . name ] != null && record . data [ attribute . name ] !== '' ? ( < span className = "whitespace-pre-wrap relative" >
110
- < span > { `${ record . data [ attribute . name ] } ` } </ span >
111
- { erdData . cachedRecordChanges [ buildAccessKey ( record . id , attribute . name ) ] && < div className = "absolute -left-5 top-0 text-yellow-500" >
112
- < Tooltip content = { TOOLTIPS_DICT . EDIT_RECORDS . CACHED_VALUES } color = "invert" placement = "right" className = "cursor-auto" >
113
- < MemoIconAlertTriangleFilled size = { 16 } stroke = { 2 } />
114
- </ Tooltip >
115
- </ div > }
116
- </ span > ) : < NotPresentInRecord /> }
117
- </ > }
118
- </ > ) }
109
+ </ div > ) :
110
+ attribute . dataType == DataTypeEnum . PERMISSION ? < span className = "font-dmMono" > Permissions are not editable</ span > :
111
+ (
112
+ < >
113
+ { ( record . id == erdData . editRecordId && ! attribute . isPrimaryKey ) ? < EditField attribute = { attribute } record = { record } erdData = { erdData } setErdData = { ( erdData ) => setErdData ( erdData ) } /> : < >
114
+ { record . data [ attribute . name ] != null && record . data [ attribute . name ] !== '' ? ( < span className = "whitespace-pre-wrap relative" style = { { wordBreak : 'break-word' } } >
115
+ < span > { `${ record . data [ attribute . name ] } ` } </ span >
116
+ { erdData . cachedRecordChanges [ buildAccessKey ( record . id , attribute . name ) ] && < div className = "absolute -left-5 top-0 text-yellow-500" >
117
+ < Tooltip content = { TOOLTIPS_DICT . EDIT_RECORDS . CACHED_VALUES } color = "invert" placement = "right" className = "cursor-auto" >
118
+ < MemoIconAlertTriangleFilled size = { 16 } stroke = { 2 } />
119
+ </ Tooltip >
120
+ </ div > }
121
+ </ span > ) : < NotPresentInRecord /> }
122
+ </ > }
123
+ </ > ) }
124
+
119
125
</ div >
120
126
</ div >
127
+
121
128
</ Fragment > ) ) }
122
129
< div className = "absolute top-2 right-2 flex flex-row flex-nowrap items-center gap-x-2" >
123
130
{ record . rla_data && < Tooltip content = { TOOLTIPS_DICT . EDIT_RECORDS . LABEL_ASSOCIATIONS } color = "invert" placement = "left" className = "cursor-auto" >
0 commit comments