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

che-1865: Fix disable compare button in the compare widget when we have changed few files #2091

Merged
merged 1 commit into from
Aug 12, 2016

Conversation

AndrienkoAleksandr
Copy link
Contributor

What does this PR do?

Fix disable compare button when we have changed few files and open compare widget. By default tree with changes select first element and compare button should be enabled.

What issues does this PR fix or reference?

#1865

Tests written?

No

Docs requirements?

Include the content for all the docs changes required.

  1. API changes : without changes
  2. User docs changes : without changes

@vinokurig review please

Signed-off-by: Aleksandr Andrienko aandrienko@codenvy.com

@codenvy-ci
Copy link

@vinokurig
Copy link
Contributor

Ok to me

@AndrienkoAleksandr
Copy link
Contributor Author

@azatsarynnyy @sleshchenko review please

@codenvy-ci
Copy link

@azatsarynnyy
Copy link
Member

ok

@@ -68,9 +68,9 @@ public void show(Map<String, Status> changedFiles, String revision, Project proj
this.changedFiles = changedFiles;
this.project = project;
view.showDialog();
view.setEnableCompareButton(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb it would be better to init state of view and only then show dialog?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@sleshchenko
Copy link
Member

OK

… window.

 Fix disabled state of the compare button when we open Git compare window and it contains some changed files to compare. Delete unused code.

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
@skabashnyuk
Copy link
Contributor

+0

@AndrienkoAleksandr AndrienkoAleksandr merged commit f4ca4f9 into master Aug 12, 2016
@AndrienkoAleksandr AndrienkoAleksandr deleted the che-1865 branch August 12, 2016 14:00
@codenvy-ci
Copy link

JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
che-1865: Fix disable compare button in the compare widget when we have changed few files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants