From 281db9999a58540eac5326b2d6e7ca9f525b8657 Mon Sep 17 00:00:00 2001 From: Teale Fristoe Date: Thu, 5 Sep 2024 12:58:31 -0700 Subject: [PATCH 1/2] Make shared table block API requests. --- src/lib/CodapInterface.ts | 1 + src/lib/codap-helper.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/CodapInterface.ts b/src/lib/CodapInterface.ts index 72b128c..ca4f1e8 100644 --- a/src/lib/CodapInterface.ts +++ b/src/lib/CodapInterface.ts @@ -88,6 +88,7 @@ export interface IConfig { preventTopLevelReorg?: boolean; preventAttributeDeletion?: boolean; allowEmptyAttributeDeletion?: boolean; + blockAPIRequests?: boolean; respectEditableItemAttribute?: boolean; } diff --git a/src/lib/codap-helper.ts b/src/lib/codap-helper.ts index 81df052..fe8af94 100644 --- a/src/lib/codap-helper.ts +++ b/src/lib/codap-helper.ts @@ -54,6 +54,7 @@ export class CodapHelper { preventTopLevelReorg: true, preventAttributeDeletion: false, allowEmptyAttributeDeletion: true, + blockAPIRequests: true, respectEditableItemAttribute: true, dimensions }; From 6011d11f2826a2c979e218fc7e49ad9791644abe Mon Sep 17 00:00:00 2001 From: Teale Fristoe Date: Thu, 5 Sep 2024 16:04:55 -0700 Subject: [PATCH 2/2] Rename setting. --- src/lib/CodapInterface.ts | 2 +- src/lib/codap-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/CodapInterface.ts b/src/lib/CodapInterface.ts index ca4f1e8..5b334da 100644 --- a/src/lib/CodapInterface.ts +++ b/src/lib/CodapInterface.ts @@ -88,7 +88,7 @@ export interface IConfig { preventTopLevelReorg?: boolean; preventAttributeDeletion?: boolean; allowEmptyAttributeDeletion?: boolean; - blockAPIRequests?: boolean; + blockAPIRequestsWhileEditing?: boolean; respectEditableItemAttribute?: boolean; } diff --git a/src/lib/codap-helper.ts b/src/lib/codap-helper.ts index fe8af94..c420dd0 100644 --- a/src/lib/codap-helper.ts +++ b/src/lib/codap-helper.ts @@ -54,7 +54,7 @@ export class CodapHelper { preventTopLevelReorg: true, preventAttributeDeletion: false, allowEmptyAttributeDeletion: true, - blockAPIRequests: true, + blockAPIRequestsWhileEditing: true, respectEditableItemAttribute: true, dimensions };