mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 05:25:53 +08:00
fix(core): add switch button to switch-to-edgeless notification (#8300)
fix AF-1359
This commit is contained in:
-10
@@ -1,4 +1,3 @@
|
||||
import { notify } from '@affine/component';
|
||||
import { AIProvider } from '@affine/core/blocksuite/presets/ai';
|
||||
import { toggleGeneralAIOnboarding } from '@affine/core/components/affine/ai-onboarding/apis';
|
||||
import { authAtom, openSettingModalAtom } from '@affine/core/components/atoms';
|
||||
@@ -7,7 +6,6 @@ import {
|
||||
type getCopilotHistoriesQuery,
|
||||
type RequestOptions,
|
||||
} from '@affine/graphql';
|
||||
import { Trans } from '@affine/i18n';
|
||||
import { track } from '@affine/track';
|
||||
import { UnauthorizedError } from '@blocksuite/blocks';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
@@ -480,13 +478,5 @@ Could you make a new website based on these notes and send back just the html fi
|
||||
}));
|
||||
});
|
||||
|
||||
AIProvider.slots.requestRunInEdgeless.on(() => {
|
||||
notify.warning({
|
||||
title: (
|
||||
<Trans i18nKey="com.affine.ai.action.edgeless-only.dialog-title" />
|
||||
),
|
||||
});
|
||||
});
|
||||
|
||||
setupTracker();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user