mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
Merge pull request #1571 from MyLiveCV/BUG-1569
BUG-1569 - Add Lock Option for List View
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user