From 6e4c6234d2d0f451c7c33ae3bebaad64d23bb035 Mon Sep 17 00:00:00 2001 From: Meitar Reihan Date: Fri, 10 Jan 2025 23:28:20 +0200 Subject: [PATCH] Add support for TXT and PLAIN file types as ATTACHMENT_CODE_MODAL_ID --- app/src/controllers/log/attachments/constants.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/controllers/log/attachments/constants.js b/app/src/controllers/log/attachments/constants.js index 0bd06bfe33..6b1ffea421 100644 --- a/app/src/controllers/log/attachments/constants.js +++ b/app/src/controllers/log/attachments/constants.js @@ -69,6 +69,8 @@ export const FILE_MODAL_IDS_MAP = { [FILE_TYPES.XML]: ATTACHMENT_CODE_MODAL_ID, [FILE_TYPES.JAVASCRIPT]: ATTACHMENT_CODE_MODAL_ID, [FILE_TYPES.JSON]: ATTACHMENT_CODE_MODAL_ID, + [FILE_TYPES.TXT]: ATTACHMENT_CODE_MODAL_ID, + [FILE_TYPES.PLAIN]: ATTACHMENT_CODE_MODAL_ID, [FILE_TYPES.CSS]: ATTACHMENT_CODE_MODAL_ID, [FILE_TYPES.PHP]: ATTACHMENT_CODE_MODAL_ID, [FILE_TYPES.HAR]: ATTACHMENT_HAR_FILE_MODAL_ID, @@ -99,6 +101,8 @@ export const FILE_ACTIONS_MAP = { FILE_TYPES.PHP, FILE_TYPES.HAR, FILE_TYPES.IMAGE, + FILE_TYPES.TXT, + FILE_TYPES.PLAIN, ], };