Fix a couple bugs in the unified banner.

Review Request #12899 — Created March 21, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

This change fixes up two issues we've found while testing the unified
banner:

  1. Selecting a single review reply and then clicking "Publish" would end
    up publishing all replies. This was due to a conditional that needed
    to be done in the opposite order.
  2. A last-minute change for the handler that scrolls to the selected
    review reply left it with some undefined variable errors (since we
    were no longer getting the model from the arguments). This has been
    fixed to use this.model.

Verified that both bugs were fixed.

Summary ID
Fix a couple bugs in the unified banner.
This change fixes up two issues we've found while testing the unified banner: 1. Selecting a single review reply and then clicking "Publish" would end up publishing all replies. This was due to a conditional that needed to be done in the opposite order. 2. A last-minute change for the handler that scrolls to the selected review reply left it with some undefined variable errors (since we were no longer getting the model from the arguments). This has been fixed to use `this.model`. Testing Done: Verified that both bugs were fixed.
91382d2036455c3003e7c43408626f528ab67918
Description From Last Updated

Let's avoid the repeated this.model lookups and pull those out into a local variable.

chipx86chipx86
maubin
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Let's avoid the repeated this.model lookups and pull those out into a local variable.

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (6f9fdc0)