Web:Client:ProfileActionsStore: return checkEnabledActions for profile menu
This commit is contained in:
parent
7f72382d32
commit
20676d2cc9
@ -232,13 +232,17 @@ class ProfileActionsStore {
|
||||
});
|
||||
}
|
||||
}
|
||||
return actions;
|
||||
// return this.checkEnabledActions(actions);
|
||||
|
||||
return this.checkEnabledActions(actions);
|
||||
};
|
||||
|
||||
checkEnabledActions = (actions) => {
|
||||
const actionsArray = actions;
|
||||
|
||||
if (!this.authStore.settingsStore.additionalResourcesData) {
|
||||
return actionsArray;
|
||||
}
|
||||
|
||||
const feedbackAndSupportEnabled = this.authStore.settingsStore
|
||||
.additionalResourcesData?.feedbackAndSupportEnabled;
|
||||
const videoGuidesEnabled = this.authStore.settingsStore
|
||||
|
Loading…
Reference in New Issue
Block a user