diff --git a/abstract/EventManager.js b/abstract/EventManager.js index 2a856aecc..82f4c8f6a 100644 --- a/abstract/EventManager.js +++ b/abstract/EventManager.js @@ -6,7 +6,7 @@ export const EVENT_TYPES = { UPLOAD_FINISH: 'UPLOAD_FINISH', UPLOAD_ERROR: 'UPLOAD_ERROR', VALIDATION_ERROR: 'VALIDATION_ERROR', - CDN_MODIFICATION: 'CLOUD_MODIFICATION', + CLOUD_MODIFICATION: 'CLOUD_MODIFICATION', DATA_OUTPUT: 'DATA_OUTPUT', DONE_FLOW: 'DONE_FLOW', INIT_FLOW: 'INIT_FLOW', diff --git a/abstract/UploaderBlock.js b/abstract/UploaderBlock.js index 388a17e3c..e5d0fc784 100644 --- a/abstract/UploaderBlock.js +++ b/abstract/UploaderBlock.js @@ -524,7 +524,7 @@ export class UploaderBlock extends ActivityBlock { items.forEach((id) => { EventManager.emit( new EventData({ - type: EVENT_TYPES.CDN_MODIFICATION, + type: EVENT_TYPES.CLOUD_MODIFICATION, ctx: this.ctxName, data: Data.getCtx(id).store, }), @@ -666,7 +666,7 @@ Object.values(EVENT_TYPES).forEach((eType) => { const cb = debounce( /** @param {CustomEvent} e */ (e) => { - let outputTypes = [EVENT_TYPES.UPLOAD_FINISH, EVENT_TYPES.REMOVE, EVENT_TYPES.CDN_MODIFICATION]; + let outputTypes = [EVENT_TYPES.UPLOAD_FINISH, EVENT_TYPES.REMOVE, EVENT_TYPES.CLOUD_MODIFICATION]; // @ts-ignore TODO: fix this if (outputTypes.includes(e.detail.type)) { // @ts-ignore TODO: fix this diff --git a/types/events.d.ts b/types/events.d.ts index 116065f66..43c45c330 100644 --- a/types/events.d.ts +++ b/types/events.d.ts @@ -6,7 +6,7 @@ interface CustomEventMap { UPLOAD_FINISH: CustomEvent; UPLOAD_ERROR: CustomEvent; VALIDATION_ERROR: CustomEvent; - CDN_MODIFICATION: CustomEvent; + CLOUD_MODIFICATION: CustomEvent; DATA_OUTPUT: CustomEvent; DONE_FLOW: CustomEvent; INIT_FLOW: CustomEvent;