chore: Enable Help Center on Sidebar (#5435)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2022-09-18 13:08:30 -07:00
committed by GitHub
co-authored by Pranav Raj S
parent bc23c69605
commit 678a0af962
6 changed files with 28 additions and 3 deletions
@@ -21,6 +21,11 @@ export const getters = {
getUIFlags($state) {
return $state.uiFlags;
},
isFeatureEnabledonAccount: $state => (id, featureName) => {
const { features = {} } =
$state.records.find(record => record.id === Number(id)) || {};
return features[featureName] || false;
},
};
export const actions = {