@@ -10,21 +10,22 @@ import {
1010 SchemaBlock ,
1111 SchemaBlockGroup ,
1212 setupEventForSyncValidation ,
13+ setupEventForSyncValidation2 ,
1314} from 'ember-osf-web/packages/registration-schema' ;
1415import { RegistrationResponse } from 'ember-osf-web/packages/registration-schema/registration-response' ;
1516
1617export class PageManager {
1718 changeset ?: ChangesetDef ;
1819 schemaBlockGroups ?: SchemaBlockGroup [ ] ;
1920 pageHeadingText ?: string ;
20- hideProjectmetadata ?: boolean ;
21+ concealmentPageNavigator ?: boolean ;
2122 isVisited ?: boolean ;
2223
2324 constructor ( pageSchemaBlocks : SchemaBlock [ ] , registrationResponses : RegistrationResponse , node ?: NodeModel ) {
2425 this . schemaBlockGroups = getSchemaBlockGroups ( pageSchemaBlocks ) ;
2526 if ( this . schemaBlockGroups ) {
2627 this . pageHeadingText = this . schemaBlockGroups [ 0 ] . labelBlock ! . displayText ! ;
27- this . hideProjectmetadata = this . schemaBlockGroups [ 0 ] . labelBlock ! . hideProjectmetadata ! ;
28+ this . concealmentPageNavigator = this . schemaBlockGroups [ 0 ] . labelBlock ! . concealmentPageNavigator ! ;
2829
2930 this . isVisited = this . schemaBlockGroups . some (
3031 ( { registrationResponseKey : key } ) => Boolean ( key && ( key in registrationResponses ) ) ,
@@ -36,8 +37,11 @@ export class PageManager {
3637 lookupValidator ( validations ) ,
3738 validations ,
3839 ) as ChangesetDef ;
40+
3941 setupEventForSyncValidation ( this . changeset , this . schemaBlockGroups ) ;
4042
43+ setupEventForSyncValidation2 ( this . changeset , this . schemaBlockGroups ) ;
44+
4145 if ( this . isVisited ) {
4246 this . changeset . validate ( ) ;
4347 }
0 commit comments