mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 00:10:50 +00:00
Close note context menu as soon as the confirmation dialog appears
This commit is contained in:
parent
503ca6996a
commit
e4fc7cd6f9
@ -168,13 +168,19 @@ const NoteHeader: Component<{ note: PrimalNote, openCustomZap?: () => void}> = (
|
||||
const noteContextForOtherPeople: MenuItem[] = [
|
||||
{
|
||||
label: intl.formatMessage(tActions.noteContext.muteAuthor),
|
||||
action: () => setConfirmMuteUser(true),
|
||||
action: () => {
|
||||
setConfirmMuteUser(true);
|
||||
setContext(false);
|
||||
},
|
||||
icon: 'mute_user',
|
||||
warning: true,
|
||||
},
|
||||
{
|
||||
label: intl.formatMessage(tActions.noteContext.reportAuthor),
|
||||
action: () => setConfirmReportUser(true),
|
||||
action: () => {
|
||||
setConfirmReportUser(true);
|
||||
setContext(false);
|
||||
},
|
||||
icon: 'report',
|
||||
warning: true,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user