changed setInfoPanelVisible to setInfoPanelIsVisible in form people store and accounts contextOptions
This commit is contained in:
parent
0904fa1da1
commit
fcb0f3e85f
@ -162,7 +162,7 @@ class AccountsContextOptionsStore {
|
||||
|
||||
const { isAdmin, isOwner } = this.authStore.userStore.user;
|
||||
|
||||
const { setVisible, isVisible } = this.peopleStore.infoPanelStore;
|
||||
const { setIsVisible, isVisible } = this.peopleStore.infoPanelStore;
|
||||
|
||||
const options = [];
|
||||
|
||||
@ -212,7 +212,7 @@ class AccountsContextOptionsStore {
|
||||
key: "cm-info",
|
||||
label: t("Common:Info"),
|
||||
disabled: isVisible,
|
||||
onClick: setVisible,
|
||||
onClick: () => setIsVisible(true),
|
||||
icon: "images/info.react.svg",
|
||||
},
|
||||
{
|
||||
@ -375,9 +375,8 @@ class AccountsContextOptionsStore {
|
||||
};
|
||||
|
||||
onDetailsClick = () => {
|
||||
const { setVisible } = this.peopleStore.infoPanelStore;
|
||||
|
||||
setVisible();
|
||||
const { setIsVisible } = this.peopleStore.infoPanelStore;
|
||||
setIsVisible(true);
|
||||
};
|
||||
|
||||
onInviteAgainClick = (t, item) => {
|
||||
|
@ -153,7 +153,7 @@ class PeopleStore {
|
||||
|
||||
const { isAdmin, isOwner } = this.authStore.userStore.user;
|
||||
|
||||
const { setVisible, isVisible } = this.infoPanelStore;
|
||||
const { setIsVisible, isVisible } = this.infoPanelStore;
|
||||
|
||||
const options = [];
|
||||
|
||||
@ -204,7 +204,7 @@ class PeopleStore {
|
||||
key: "info",
|
||||
label: t("Common:Info"),
|
||||
disabled: isVisible,
|
||||
onClick: setVisible,
|
||||
onClick: () => setIsVisible(true),
|
||||
iconUrl: "images/info.react.svg",
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user