Merge pull request #1054 from ONLYOFFICE/bugfix/additional-resources
bugfix/additional-resources
This commit is contained in:
commit
9982cae3c0
@ -252,21 +252,23 @@ class ProfileActionsStore {
|
||||
|
||||
if (!feedbackAndSupportEnabled) {
|
||||
const index = actionsArray.findIndex(
|
||||
(item) => item?.key === "SupportBtn"
|
||||
(item) => item?.key === "user-menu-support"
|
||||
);
|
||||
|
||||
actionsArray.splice(index, 1);
|
||||
}
|
||||
|
||||
if (!videoGuidesEnabled) {
|
||||
const index = actionsArray.findIndex((item) => item?.key === "VideoBtn");
|
||||
const index = actionsArray.findIndex(
|
||||
(item) => item?.key === "user-menu-video"
|
||||
);
|
||||
|
||||
actionsArray.splice(index, 1);
|
||||
}
|
||||
|
||||
if (!helpCenterEnabled) {
|
||||
const index = actionsArray.findIndex(
|
||||
(item) => item?.key === "HelpCenterBtn"
|
||||
(item) => item?.key === "user-menu-help-center"
|
||||
);
|
||||
|
||||
actionsArray.splice(index, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user