From a63240b5975d2f94d0ddf4c575cb16bcb68d7f1c Mon Sep 17 00:00:00 2001 From: Ben Rohlfs Date: Tue, 2 Jun 2020 16:01:31 +0200 Subject: [PATCH] Add a temporary hack to change the label of the 'ready' action Otherwise we would have to wait until change 269573 is live. But we want to go live with the frontend change 269437 as soon as possible in order to minimize user confusion. Change-Id: I197204d8aae7a2596ad535a6882bffb6e717fb53 --- .../elements/change/gr-change-actions/gr-change-actions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js index 511e5a3fad..8dc8058c4e 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.js @@ -1546,6 +1546,12 @@ class GrChangeActions extends mixinBehaviors( [ if (ACTIONS_WITH_ICONS.has(action.__key)) { action.icon = action.__key; } + // TODO(brohlfs): Temporary hack until change 269573 is live in all + // backends. + if (action.__key === ChangeActions.READY) { + action.label = 'Mark as Active'; + } + // End of hack return action; }) .filter(action => !this._shouldSkipAction(action));