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

App reload in cluster settings #858

Merged
merged 4 commits into from
Sep 12, 2020
Merged

Conversation

aleksfront
Copy link
Contributor

Apply whole webContents reload in Cluster Settings.
global reload

Resolves #796
Signed-off-by: Alex Andreev alex.andreev.email@gmail.com

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront requested a review from a team September 11, 2020 10:33
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@nevalla nevalla added the bug Something isn't working label Sep 11, 2020
@nevalla nevalla added this to the 3.6.0 milestone Sep 11, 2020
@nevalla nevalla modified the milestones: 3.6.0, 3.6.1 Sep 11, 2020
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Copy link
Member

@ixrock ixrock left a comment

Choose a reason for hiding this comment

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

LGTM

path: [clusterViewRoute.path, clusterSettingsRoute.path].flat(),
exact: true
})
const isActive = activeClusterId === cluster.id && !!matched;
Copy link
Member

@ixrock ixrock Sep 11, 2020

Choose a reason for hiding this comment

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

Why do we need to check route matching to highlight cluster icon?
const isActive = cluster.id === clusterStore.activeClusterId not enough?

Copy link
Member

@ixrock ixrock Sep 11, 2020

Choose a reason for hiding this comment

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

Btw, in case of using matchPath should be like const isActive = cluster.id === matched?.params.clusterId in your case.. but I suggest to remove it if no objections..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made suggested changes and completely removed matchPath.

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront merged commit c6b3738 into master Sep 12, 2020
@aleksfront aleksfront deleted the fix-cluster-settings-global-reload branch September 12, 2020 13:35
@nevalla nevalla mentioned this pull request Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reload does not work when in cluster settings
3 participants