Add placeholder in comments for mentioning users
Text is similar to how Google docs shows the placeholder for
adding other people.
Google docs text is "Add others" but we prefer "Mention" here
since that is the text we use for the chip as well.
Google-bug-id: b/245261406
Release-Notes: skip
Change-Id: Ia50f815bdcf6a61abbb71b95d0868c521db42679
diff --git a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
index 9fddfc7..9de4daa 100644
--- a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
+++ b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
@@ -271,6 +271,9 @@
});
}
}
+ if (this.flagsService.isEnabled(KnownExperimentId.MENTION_USERS)) {
+ this.messagePlaceholder = 'Mention others with @';
+ }
subscribe(
this,
() => this.configModel().repoCommentLinks$,