Merge "Hide suggest edit button in permanent editing mode"
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..72721c3 100644
--- a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
+++ b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
@@ -783,6 +783,12 @@
if (!this.flagsService.isEnabled(KnownExperimentId.SUGGEST_EDIT)) {
return nothing;
}
+ if (
+ this.permanentEditingMode ||
+ this.comment?.path === SpecialFilePath.PATCHSET_LEVEL_COMMENTS
+ ) {
+ return nothing;
+ }
assertIsDefined(this.comment, 'comment');
if (hasUserSuggestion(this.comment)) return nothing;
// TODO(milutin): remove this check once suggesting on commit message is