fix: Fix the create listener disappear when status is changing

Show create listener when status is from PENDING_UPDATE to ACTIVE

Change-Id: I2571548c89ae4b37a5f09d54d277064bd2d6ba5d
This commit is contained in:
xusongfu 2021-12-21 14:22:52 +08:00
parent 17f029b8ad
commit c185571953
2 changed files with 13 additions and 1 deletions

View File

@ -407,6 +407,10 @@ export default class BaseList extends React.Component {
return 'all_projects';
}
get forceRefreshTopDetailWhenListRefresh() {
return false;
}
setRefreshdataTimerTransition = () => {
this.stopRefreshAuto();
if (this.dataTimerTransition) {
@ -904,7 +908,11 @@ export default class BaseList extends React.Component {
silent: !force,
};
this.handleFetch(params, true);
if (this.inDetailPage && force && this.shouldRefreshDetail) {
if (
this.inDetailPage &&
(force || this.forceRefreshTopDetailWhenListRefresh) &&
this.shouldRefreshDetail
) {
this.refreshDetailData();
}
};

View File

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