mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	chore: Cleanup feature flags (#6096)
- Add more feature flags for CRM, auto_resolution, and reports - Add a SuperAdmin link in the sidebar if the user is a super-admin - SuperAdmin could view all the features on an account irrespective of whether the feature is enabled.
This commit is contained in:
		| @@ -106,18 +106,22 @@ export default { | ||||
|       activeInbox: 'getSelectedInbox', | ||||
|       accountId: 'getCurrentAccountId', | ||||
|       isFeatureEnabledonAccount: 'accounts/isFeatureEnabledonAccount', | ||||
|       globalConfig: 'globalConfig/get', | ||||
|     }), | ||||
|     hasSubMenu() { | ||||
|       return !!this.menuItem.children; | ||||
|     }, | ||||
|     isMenuItemVisible() { | ||||
|       if (!this.menuItem.featureFlag) { | ||||
|         return true; | ||||
|       if (this.menuItem.globalConfigFlag) { | ||||
|         return !!this.globalConfig[this.menuItem.globalConfigFlag]; | ||||
|       } | ||||
|       return this.isFeatureEnabledonAccount( | ||||
|         this.accountId, | ||||
|         this.menuItem.featureFlag | ||||
|       ); | ||||
|       if (this.menuItem.featureFlag) { | ||||
|         return this.isFeatureEnabledonAccount( | ||||
|           this.accountId, | ||||
|           this.menuItem.featureFlag | ||||
|         ); | ||||
|       } | ||||
|       return true; | ||||
|     }, | ||||
|     isAllConversations() { | ||||
|       return ( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pranav Raj S
					Pranav Raj S