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-19 01:38:30 +05:30
committed by GitHub
parent bc23c69605
commit 678a0af962
6 changed files with 28 additions and 3 deletions

View File

@@ -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 = {