Web: Files: fixed onShowInfoPanel

This commit is contained in:
Nikita Gopienko 2023-07-19 15:34:27 +03:00
parent 17be338ccf
commit a3b04adeef

View File

@ -544,11 +544,13 @@ class ContextOptionsStore {
return options.filter((o) => !!o);
};
onShowInfoPanel = (item) => {
const { setSelection, setIsVisible } = this.authStore.infoPanelStore;
onShowInfoPanel = (item, view) => {
const { setSelection, setIsVisible, setView } =
this.authStore.infoPanelStore;
setSelection(item);
setIsVisible(true);
view && setView(view);
};
onClickEditRoom = (item) => {
@ -601,7 +603,7 @@ class ContextOptionsStore {
id: "manage-option",
key: "manage-links",
label: t("Notifications:ManageNotifications"),
onClick: () => this.onShowInfoPanel(item),
onClick: () => this.onShowInfoPanel(item, "info_members"),
},
];
}