mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
chore(core): remove calendar integration feature flag (#12689)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - All available integrations are now shown without restriction; calendar integration is always visible. - **Chores** - Removed an obsolete feature flag related to calendar integration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -56,16 +56,11 @@ export type IntegrationItem = Exclude<IntegrationCard, 'id'> & {
|
||||
};
|
||||
|
||||
export function getAllowedIntegrationList$(
|
||||
featureFlagService: FeatureFlagService
|
||||
_featureFlagService: FeatureFlagService
|
||||
) {
|
||||
return LiveData.computed(get => {
|
||||
return LiveData.computed(() => {
|
||||
return INTEGRATION_LIST.filter(item => {
|
||||
if (!item) return false;
|
||||
|
||||
if (item.id === 'calendar') {
|
||||
return get(featureFlagService.flags.enable_calendar_integration.$);
|
||||
}
|
||||
|
||||
return true;
|
||||
}) as IntegrationItem[];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user