Skip to content

Commit

Permalink
Merge pull request #1571 from MyLiveCV/BUG-1569
Browse files Browse the repository at this point in the history
BUG-1569 - Add Lock Option for List View
  • Loading branch information
AmruthPillai authored Nov 23, 2023
2 parents edc46da + f2ca131 commit 4750410
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,27 @@ export const ResumeListItem = ({ resume }: Props) => {
<CopySimple size={14} className="mr-2" />
{t`Duplicate`}
</DropdownMenuItem>
{resume.locked ? (
<DropdownMenuItem
onClick={(event) => {
event.stopPropagation();
onLockChange();
}}
>
<LockOpen size={14} className="mr-2" />
{t`Unlock`}
</DropdownMenuItem>
) : (
<DropdownMenuItem
onClick={(event) => {
event.stopPropagation();
onLockChange();
}}
>
<Lock size={14} className="mr-2" />
{t`Lock`}
</DropdownMenuItem>
)}
<ContextMenuSeparator />
<DropdownMenuItem
className="text-error"
Expand Down

0 comments on commit 4750410

Please sign in to comment.