| |
@@ -332,6 +332,11 @@
|
| |
}
|
| |
|
| |
handleServerIdChange(e) {
|
| |
+ this.setState({
|
| |
+ pageLoadingState: { state: "loading", jsx: "" },
|
| |
+ progressValue: 25,
|
| |
+ serverId: e.target.value
|
| |
+ });
|
| |
this.loadInstanceList(e.target.value);
|
| |
}
|
| |
|
| |
@@ -625,6 +630,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
<TabPane eventKey={2}>
|
| |
@@ -632,6 +638,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
<TabPane eventKey={3}>
|
| |
@@ -639,6 +646,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
<TabPane eventKey={4}>
|
| |
@@ -646,6 +654,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
<TabPane eventKey={5}>
|
| |
@@ -653,6 +662,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
<TabPane eventKey={6}>
|
| |
@@ -660,6 +670,7 @@
|
| |
addNotification={this.addNotification}
|
| |
serverId={this.state.serverId}
|
| |
wasActiveList={this.state.wasActiveList}
|
| |
+ key={this.state.serverId}
|
| |
/>
|
| |
</TabPane>
|
| |
</TabContent>
|
| |
Bug Description
When you switch between instances in the UI, there is no loading page, there is a long wait before the dropdown menu changes, and it does not refresh the page content (it still contains the previous instance's data).
Fix Description
Set the "loading" flag and the serverId right away when instance is changed. Then we set the tab component's key to the server ID so the content is automatically refreshed.
Issue
https://pagure.io/389-ds-base/issue/51031