Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HAL-1980][JBEAP-27111] Installation Manager Web Console does not use the expected revert revision #1158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ public HTMLElement element() {
@Override
public List<ItemAction<UpdateItem>> actions() {
List<ItemAction<UpdateItem>> actions = new ArrayList<>();
if (item.getUpdateKind() == UpdateItem.UpdateType.UPDATE) {
if ((!item.equals(getCurrentItems().get(0)) && (item.getUpdateKind() == UpdateItem.UpdateType.UPDATE
|| item.getUpdateKind() == UpdateItem.UpdateType.INSTALL))) {
actions.add(new ItemAction.Builder<UpdateItem>()
.title(resources.constants().revert())
.title(resources.constants().revertTo())
.handler(itm -> revert(itm))
.constraint(Constraint.executable(INSTALLER_TEMPLATE, PREPARE_REVERT))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ public interface Constants extends com.google.gwt.i18n.client.Constants {
String results();
String resume();
String revert();
String revertTo();
String revertUpdatePreviousState();
String review();
String revoke();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ restricted=The permissions for your role don\u0027t allow to access this data.
results=Results
resume=Resume
revert=Revert
revertTo=Revert to
revertUpdatePreviousState=Revert update to previous state
review=Review
revoke=Revoke
Expand Down