Skip to content

Commit

Permalink
create pinned status
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Sep 13, 2024
1 parent 49b0051 commit d61c06f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5486,6 +5486,7 @@ const CONST = {
SENT: 'sent',
ATTACHMENTS: 'attachments',
LINKS: 'links',
PINNED: 'pinned',
},
},
TABLE_COLUMNS: {
Expand Down
6 changes: 6 additions & 0 deletions src/components/Search/SearchStatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ const chatOptions: Array<{key: ChatSearchStatus; icon: IconAsset; text: Translat
text: 'common.links',
query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.CHAT, CONST.SEARCH.STATUS.CHAT.LINKS),
},
{
key: CONST.SEARCH.STATUS.CHAT.PINNED,
icon: Expensicons.Pin,
text: 'search.filters.pinned',
query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.CHAT, CONST.SEARCH.STATUS.CHAT.PINNED),
},
];

function getOptions(type: SearchDataTypes) {
Expand Down

0 comments on commit d61c06f

Please sign in to comment.