@@ -426,14 +426,13 @@ class Toolbar {
426
426
// change this to use the context instead
427
427
this . context . setupDataHarmonizers ( { template_path, schema_name, template_name, schema, exportFormats, languages, schemaClass } ) . then ( async ( context ) => {
428
428
429
+ let columnCoordinates ;
429
430
const dh = context . getCurrentDataHarmonizer ( ) ;
430
- console . log ( dh ) ;
431
-
432
431
if ( ! languages ) languages = await dh . getLanguages ( template_name ) ;
433
432
if ( ! schemaClass ) schemaClass = schema . classes [ template_name ] ;
434
433
if ( ! columnCoordinates ) columnCoordinates = dh . getColumnCoordinates ( ) ;
435
434
436
- const updateGUI = ( { template_path, schema_name, template_name, schema, exportFormats, languages, schemaClass } ) => {
435
+ const updateGUI = ( { template_path, schema_name, template_name, schema, exportFormats, languages, schemaClass, columnCoordinates } ) => {
437
436
438
437
const languageSelect = $ ( '#select-language-localization' ) . empty ( ) ;
439
438
for ( const { langcode, nativeName } of Object . values ( languages ) ) {
@@ -462,7 +461,6 @@ class Toolbar {
462
461
helpSop . hide ( ) ;
463
462
}
464
463
465
- const columnCoordinates = dh . getColumnCoordinates ( ) ;
466
464
const sectionMenu = $ ( '#section-menu' ) . empty ( ) ;
467
465
dh . template . forEach ( ( section , index ) => {
468
466
sectionMenu . append (
@@ -477,7 +475,7 @@ class Toolbar {
477
475
478
476
} ;
479
477
480
- updateGUI ( { schema_name, template_name, schema, exportFormats, languages, schemaClass } ) ;
478
+ updateGUI ( { schema_name, template_name, schema, exportFormats, languages, schemaClass, columnCoordinates } ) ;
481
479
482
480
} ) ;
483
481
0 commit comments