don't close user popover on moderation confirmation
This commit is contained in:
parent
4f2aa72abd
commit
23b65d25ca
3 changed files with 3 additions and 3 deletions
1
changelog.d/moderation.fix
Normal file
1
changelog.d/moderation.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fixed moderation actions requiring confirmation closing user popover
|
||||||
|
|
@ -516,8 +516,7 @@ const ModerationTools = {
|
||||||
setOpen(value) {
|
setOpen(value) {
|
||||||
this.open = value
|
this.open = value
|
||||||
},
|
},
|
||||||
maybeShowConfirm(close, { group, name, action, value }) {
|
maybeShowConfirm({ group, name, action, value }) {
|
||||||
close()
|
|
||||||
this.confirmDialogName = name
|
this.confirmDialogName = name
|
||||||
this.confirmDialogGroup = group
|
this.confirmDialogGroup = group
|
||||||
this.confirmDialogAction = () => action()
|
this.confirmDialogAction = () => action()
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="main-button"
|
class="main-button"
|
||||||
@click="() => maybeShowConfirm(close, entry)"
|
@click="() => maybeShowConfirm(entry)"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-if="entry.checkbox"
|
v-if="entry.checkbox"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue