diff --git a/packages/asc-web-common/components/Loaders/ProfileViewLoader/ProfileViewLoader.js b/packages/asc-web-common/components/Loaders/ProfileViewLoader/ProfileViewLoader.js index a0f050ddb1..d326e8a065 100644 --- a/packages/asc-web-common/components/Loaders/ProfileViewLoader/ProfileViewLoader.js +++ b/packages/asc-web-common/components/Loaders/ProfileViewLoader/ProfileViewLoader.js @@ -179,9 +179,11 @@ const ProfileViewLoader = ({ id, className, style, isEdit, ...rest }) => { /> { + setIsLoading(false); + setLoadedProfile(true); + }); } if (!profile && this.documentElement) { @@ -59,26 +74,18 @@ class My extends React.Component { return ( - {profile && tReady ? ( - isEdit ? ( - - ) : ( - - ) + {isEdit ? ( + ) : ( - + )} - {profile && tReady ? ( - isEdit ? ( - - ) : ( - - ) + {isEdit ? ( + ) : ( - + )} @@ -101,6 +108,9 @@ const MyProfile = withRouter( resetProfile: peopleStore.targetUserStore.resetTargetUser, fetchProfile: peopleStore.targetUserStore.getTargetUser, profile: peopleStore.targetUserStore.targetUser, + setLoadedProfile: peopleStore.loadingStore.setLoadedProfile, + setIsLoading: peopleStore.loadingStore.setIsLoading, + setFirstLoad: peopleStore.loadingStore.setFirstLoad, }))(withTranslation(["Profile", "ProfileAction"])(observer(My))) ); diff --git a/products/ASC.People/Client/src/pages/ProfileAction/Section/Header/index.js b/products/ASC.People/Client/src/pages/ProfileAction/Section/Header/index.js index c7548039d4..515ca0a176 100644 --- a/products/ASC.People/Client/src/pages/ProfileAction/Section/Header/index.js +++ b/products/ASC.People/Client/src/pages/ProfileAction/Section/Header/index.js @@ -83,7 +83,6 @@ const SectionHeaderContent = (props) => { } if (!isEditTargetUser && (!profile || !document.referrer)) { - console.log("here1"); setFilterAndReset(filter); const urlFilter = filter.toUrlParams(); return history.push( @@ -91,8 +90,6 @@ const SectionHeaderContent = (props) => { ); } - console.log("here2"); - history.push( combineUrl( AppServerConfig.proxyURL,