You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: streamline cluster node selection logic in configuration components
- Simplified the logic for selecting the master node in both the WzEditConfiguration and WzRefreshClusterInfoButton components by directly finding the master node in the affected items array.
- Removed the intermediate variable for masterNode to enhance code clarity and maintainability.
Copy file name to clipboardExpand all lines: plugins/main/public/controllers/management/components/management/configuration/edit-configuration/edit-configuration.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -216,13 +216,11 @@ class WzEditConfiguration extends Component {
Copy file name to clipboardExpand all lines: plugins/main/public/controllers/management/components/management/configuration/util-components/refresh-cluster-info-button.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,11 @@ class WzRefreshClusterInfoButton extends Component {
0 commit comments