File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
web/src/views/SubmissionPortal Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export default defineComponent({
250
250
return allTabsValid && isOwner ();
251
251
});
252
252
253
- const fields = computed (() => flattenDeep (Object .entries (harmonizerApi .schemaSections .value )
253
+ const fields = computed (() => flattenDeep (Object .entries (harmonizerApi .schemaSectionColumns .value )
254
254
.map (([sectionName , children ]) => Object .entries (children ).map (([columnName , column ]) => {
255
255
const val = {
256
256
text: columnName ? ` ${columnName } ` : sectionName ,
@@ -750,13 +750,13 @@ export default defineComponent({
750
750
Show section
751
751
</span >
752
752
<v-radio
753
- v-for =" (value, sectionName ) in harmonizerApi.schemaSections .value"
753
+ v-for =" (sectionName, sectionTitle ) in harmonizerApi.schemaSectionNames .value"
754
754
:key =" sectionName"
755
755
:value =" sectionName"
756
756
>
757
757
<template #label >
758
758
<span >
759
- {{ sectionName }}
759
+ {{ sectionTitle }}
760
760
</span >
761
761
</template >
762
762
</v-radio >
Original file line number Diff line number Diff line change @@ -181,7 +181,9 @@ interface CellData {
181
181
}
182
182
183
183
export class HarmonizerApi {
184
- schemaSections : Ref < Record < string , Record < string , number > > > ;
184
+ schemaSectionNames : Ref < Record < string , string > > ;
185
+
186
+ schemaSectionColumns : Ref < Record < string , Record < string , number > > > ;
185
187
186
188
ready : Ref < boolean > ;
187
189
@@ -196,7 +198,8 @@ export class HarmonizerApi {
196
198
schema : any ;
197
199
198
200
constructor ( ) {
199
- this . schemaSections = ref ( { } ) ;
201
+ this . schemaSectionNames = ref ( { } ) ;
202
+ this . schemaSectionColumns = ref ( { } ) ;
200
203
this . ready = ref ( false ) ;
201
204
this . selectedColumn = ref ( '' ) ;
202
205
}
@@ -327,7 +330,11 @@ export class HarmonizerApi {
327
330
}
328
331
329
332
refreshState ( ) {
330
- this . schemaSections . value = this . _getColumnCoordinates ( ) ;
333
+ this . schemaSectionNames . value = this . dh . template . reduce ( ( acc : any , section : any ) => {
334
+ acc [ section . title ] = section . name ;
335
+ return acc ;
336
+ } , { } ) ;
337
+ this . schemaSectionColumns . value = this . _getColumnCoordinates ( ) ;
331
338
}
332
339
333
340
async loadData ( data : any [ ] ) {
You can’t perform that action at this time.
0 commit comments