Skip to content

Commit

Permalink
Add support for TXT and PLAIN file types as ATTACHMENT_CODE_MODAL_ID (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MeitarR authored Jan 27, 2025
1 parent 27989f8 commit e18c145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/controllers/log/attachments/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -99,6 +101,8 @@ export const FILE_ACTIONS_MAP = {
FILE_TYPES.PHP,
FILE_TYPES.HAR,
FILE_TYPES.IMAGE,
FILE_TYPES.TXT,
FILE_TYPES.PLAIN,
],
};

Expand Down

0 comments on commit e18c145

Please sign in to comment.