File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ function observeEditableElementChanges(
409409async function checkFieldLockStatus ( fieldMetadata : CslpData ) : Promise < boolean > {
410410 try {
411411 const response = ( await visualBuilderPostMessage ?. send (
412- VisualBuilderPostMessageEvents . CHECK_FIELD_LOCK_STATUS ,
412+ VisualBuilderPostMessageEvents . CHECK_OR_ACQUIRE_FIELD_LOCK ,
413413 {
414414 fieldMetadata : {
415415 content_type_uid : fieldMetadata . content_type_uid ,
Original file line number Diff line number Diff line change @@ -122,9 +122,8 @@ async function addOutline(params?: AddOutlineParams): Promise<void> {
122122 entryWorkflowStageDetails
123123 ) ;
124124 const currentIsLocked =
125- isLocked !== undefined
126- ? isLocked
127- : editableElement . getAttribute ( "data-field-locked" ) === "true" ;
125+ isLocked ??
126+ editableElement . getAttribute ( "data-field-locked" ) === "true" ;
128127 addHoverOutline (
129128 editableElement ,
130129 fieldDisabled || isDisabled ,
@@ -512,7 +511,7 @@ export async function checkAndApplyFieldLockStatus(
512511) : Promise < { isLocked : boolean ; editableElement : Element | undefined } > {
513512 try {
514513 const response = ( await visualBuilderPostMessage ?. send (
515- VisualBuilderPostMessageEvents . CHECK_FIELD_LOCK_STATUS ,
514+ VisualBuilderPostMessageEvents . CHECK_OR_ACQUIRE_FIELD_LOCK ,
516515 {
517516 fieldMetadata : {
518517 content_type_uid : fieldMetadata . content_type_uid ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export enum VisualBuilderPostMessageEvents {
3131 FIELD_LOCATION_SELECTED_APP = "field-location-selected-app" ,
3232 GET_PERMISSIONS = "get-permissions" ,
3333 GET_WORKFLOW_STAGE_DETAILS = "get-workflow-stage-details" ,
34- CHECK_FIELD_LOCK_STATUS = "check-field-lock-status " ,
34+ CHECK_OR_ACQUIRE_FIELD_LOCK = "check-or-acquire- field-lock" ,
3535 UNLOCK_FIELD = "unlock-field" ,
3636 GET_RESOLVED_VARIANT_PERMISSIONS = "get-resolved-variant-permissions" ,
3737
You can’t perform that action at this time.
0 commit comments