Skip to content

Escalate can be pressed multiple times #996

@trichoplax

Description

@trichoplax

Describe the bug
After a moderator presses "Escalate" on a flag, the Escalate button remains, so they can press it again, escalating the same flag as many times as they choose.

When an admin views the escalated flag, they only see the message from the last time it was escalated, even if different messages were included with each subsequent escalation (those previous messages are lost).

To Reproduce
Steps to reproduce the behavior:

  1. As a moderator, press Escalate on a flag and fill out a message and press Escalate in the pop up box.
  2. Repeat
  3. As an admin, see only 1 escalated flag, with only the final message that the moderator entered

Expected behavior
The Escalate button should be disabled immediately after escalation, not waiting until the next page refresh.

Screenshots
Escalate button still showing after escalating:
Escalate button still showing after escalating

After pressing Escalate 3 times, only the 3rd message is displayed:
After pressing Escalate 3 times, only the 3rd message is displayed

Desktop (please complete the following information):

  • OS: Linux (Fedora 27)
  • Browser: Firefox 109.0 and Chromium 109.0.5414.74

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: frontendChanges to front-end codecomplexity: unassessedNeeds further developer investigation before complexity/feasibility can be determined.priority: medium

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions