File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
src/features/properties-panel/entries Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 839
839
.gu-mirror .fjs-drag-row-move .cds--row {
840
840
flex-wrap : nowrap !important ;
841
841
}
842
+
843
+ .bio-properties-panel-description .bio-properties-panel-strong {
844
+ font-weight : bold;
845
+ }
Original file line number Diff line number Diff line change @@ -23,15 +23,13 @@ export function MultipleEntry(props) {
23
23
24
24
function Multiple ( props ) {
25
25
const { editField, field, id } = props ;
26
-
27
26
const debounce = useService ( 'debounce' ) ;
28
-
29
27
const variables = useVariables ( ) . map ( ( name ) => ( { name } ) ) ;
30
-
31
28
const path = [ 'multiple' ] ;
29
+ const fieldValue = get ( field , path , false ) ;
32
30
33
31
const getValue = ( ) => {
34
- return get ( field , path , '' ) ;
32
+ return fieldValue ;
35
33
} ;
36
34
37
35
const setValue = ( value ) => {
@@ -48,5 +46,15 @@ function Multiple(props) {
48
46
inline : true ,
49
47
setValue,
50
48
variables,
49
+ description : fieldValue ? (
50
+ < >
51
+ The picker variable will return an < strong class = "bio-properties-panel-strong" > array</ strong > with multiple
52
+ files
53
+ </ >
54
+ ) : (
55
+ < >
56
+ The picker variable will return an < strong class = "bio-properties-panel-strong" > array</ strong > with single
57
+ </ >
58
+ ) ,
51
59
} ) ;
52
60
}
You can’t perform that action at this time.
0 commit comments