commit | 45ccc66353d0482ba2cb1472352beb70876a40cd | [log] [tgz] |
---|---|---|
author | Dhruv <dhruvsri@google.com> | Wed Jun 01 17:06:35 2022 +0100 |
committer | Dhruv <dhruvsri@google.com> | Wed Jun 01 17:37:33 2022 +0100 |
tree | 1b6ca9409c217b8ef2312a174e8cada649e51e4b | |
parent | c920b35150d1f627cdf8d25edbc4318830b231f0 [diff] |
Only show Apply All button if more than one change is selected Release-Notes: skip Google-bug-id: b/234578022 Change-Id: Ic0ebb06ba7d9096d268cf65355addc415af8acd8
diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list-hashtag-flow/gr-change-list-hashtag-flow.ts b/polygerrit-ui/app/elements/change-list/gr-change-list-hashtag-flow/gr-change-list-hashtag-flow.ts index 18cfe61..dbc06d2 100644 --- a/polygerrit-ui/app/elements/change-list/gr-change-list-hashtag-flow/gr-change-list-hashtag-flow.ts +++ b/polygerrit-ui/app/elements/change-list/gr-change-list-hashtag-flow/gr-change-list-hashtag-flow.ts
@@ -176,8 +176,8 @@ flatten ?disabled=${applyToAllDisabled} @click=${this.applyHashtagToAll} - >Apply to all</gr-button - > + >Apply${this.selectedChanges.length > 1 ? ' to all' : nothing} + </gr-button> <gr-button id="remove-hashtags-button" flatten
diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list-topic-flow/gr-change-list-topic-flow.ts b/polygerrit-ui/app/elements/change-list/gr-change-list-topic-flow/gr-change-list-topic-flow.ts index deca7a6..0aaf6fc 100644 --- a/polygerrit-ui/app/elements/change-list/gr-change-list-topic-flow/gr-change-list-topic-flow.ts +++ b/polygerrit-ui/app/elements/change-list/gr-change-list-topic-flow/gr-change-list-topic-flow.ts
@@ -175,7 +175,9 @@ flatten ?disabled=${this.selectedExistingTopics.size !== 1} @click=${this.applyTopicToAll} - >Apply to all</gr-button + >Apply${this.selectedChanges.length > 1 + ? ' to all' + : nothing}</gr-button > <gr-button id="remove-topics-button"