fix: Fix the create member disappear when status is changing

Show create member when status is from PENDING_UPDATE to ACTIVE

Change-Id: I594be49113215e2cb9b950d61dae810f6608d61c
This commit is contained in:
xusongfu 2021-12-28 18:20:28 +08:00
parent ee0f721760
commit 6872acf19b
3 changed files with 9 additions and 2 deletions

View File

@ -52,6 +52,10 @@ export default class Members extends Base {
return this.params.id;
}
get forceRefreshTopDetailWhenListRefresh() {
return true;
}
get actionConfigs() {
if (this.isAdminPage) {
return adminActions;

View File

@ -35,6 +35,7 @@ export default class LoadBalancerDetail extends Base {
const newParams = {
...this.params,
...(params || {}),
silent: true,
all_projects: this.isAdminPage,
};
this.store.fetchDetailWithFip(newParams).catch(this.catch);

View File

@ -111,8 +111,10 @@ export class LbaasStore extends Base {
}
@action
async fetchDetailWithFip({ id, all_projects }) {
this.isLoading = true;
async fetchDetailWithFip({ id, all_projects, silent }) {
if (!silent) {
this.isLoading = true;
}
const result = await this.client.show(
id,
this.getDetailParams({ all_projects })