diff --git a/packages/noodl-editor/src/editor/src/models/CloudServices/ExternalCloudService.ts b/packages/noodl-editor/src/editor/src/models/CloudServices/ExternalCloudService.ts index deb0a15..50fdb08 100644 --- a/packages/noodl-editor/src/editor/src/models/CloudServices/ExternalCloudService.ts +++ b/packages/noodl-editor/src/editor/src/models/CloudServices/ExternalCloudService.ts @@ -54,7 +54,9 @@ export class ExternalCloudService { if (options.name) broker.name = options.name; if (options.description) broker.description = options.description; + if (options.appId) broker.appId = options.appId; if (options.masterKey) broker.masterKey = options.masterKey; + if (options.url) broker.endpoint = options.url; await JSONStorage.set('externalBrokers', { brokers }); diff --git a/packages/noodl-editor/src/editor/src/models/CloudServices/type.ts b/packages/noodl-editor/src/editor/src/models/CloudServices/type.ts index 7927c15..9cc7d16 100644 --- a/packages/noodl-editor/src/editor/src/models/CloudServices/type.ts +++ b/packages/noodl-editor/src/editor/src/models/CloudServices/type.ts @@ -14,7 +14,9 @@ export type UpdateEnvironmentRequest = { id: string; name: string | undefined; description: string | undefined; + appId: string | undefined; masterKey: string | undefined; + url: string | undefined; }; export type CreateEnvironment = { diff --git a/packages/noodl-editor/src/editor/src/views/panels/CloudServicePanel/CloudServiceModal/CloudSerivceModal.tsx b/packages/noodl-editor/src/editor/src/views/panels/CloudServicePanel/CloudServiceModal/CloudSerivceModal.tsx index fe23794..aae8e53 100644 --- a/packages/noodl-editor/src/editor/src/views/panels/CloudServicePanel/CloudServiceModal/CloudSerivceModal.tsx +++ b/packages/noodl-editor/src/editor/src/views/panels/CloudServicePanel/CloudServiceModal/CloudSerivceModal.tsx @@ -64,7 +64,9 @@ function AsSelfHosted({ id: environment.id, name, description, - masterKey + appId, + masterKey, + url }) .then(() => { ToastLayer.showSuccess(`Updated Cloud Service`);