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:
parent
17f029b8ad
commit
c185571953
@ -407,6 +407,10 @@ export default class BaseList extends React.Component {
|
|||||||
return 'all_projects';
|
return 'all_projects';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get forceRefreshTopDetailWhenListRefresh() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
setRefreshdataTimerTransition = () => {
|
setRefreshdataTimerTransition = () => {
|
||||||
this.stopRefreshAuto();
|
this.stopRefreshAuto();
|
||||||
if (this.dataTimerTransition) {
|
if (this.dataTimerTransition) {
|
||||||
@ -904,7 +908,11 @@ export default class BaseList extends React.Component {
|
|||||||
silent: !force,
|
silent: !force,
|
||||||
};
|
};
|
||||||
this.handleFetch(params, true);
|
this.handleFetch(params, true);
|
||||||
if (this.inDetailPage && force && this.shouldRefreshDetail) {
|
if (
|
||||||
|
this.inDetailPage &&
|
||||||
|
(force || this.forceRefreshTopDetailWhenListRefresh) &&
|
||||||
|
this.shouldRefreshDetail
|
||||||
|
) {
|
||||||
this.refreshDetailData();
|
this.refreshDetailData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -50,6 +50,10 @@ export default class Listeners extends Base {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get forceRefreshTopDetailWhenListRefresh() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
get actionConfigs() {
|
get actionConfigs() {
|
||||||
if (this.isAdminPage) {
|
if (this.isAdminPage) {
|
||||||
return adminActions;
|
return adminActions;
|
||||||
|
Loading…
Reference in New Issue
Block a user