mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(core): show toast for requestRunInEdgeless (#6715)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { notify } from '@affine/component';
|
||||
import { authAtom, openSettingModalAtom } from '@affine/core/atoms';
|
||||
import { mixpanel } from '@affine/core/utils';
|
||||
import { getBaseUrl } from '@affine/graphql';
|
||||
import { Trans } from '@affine/i18n';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import { AIProvider } from '@blocksuite/presets';
|
||||
import { getCurrentStore } from '@toeverything/infra';
|
||||
@@ -388,4 +390,12 @@ export function setupAIProvider() {
|
||||
openModal: true,
|
||||
}));
|
||||
});
|
||||
|
||||
AIProvider.slots.requestRunInEdgeless.on(() => {
|
||||
notify.warning({
|
||||
title: (
|
||||
<Trans i18nKey="com.affine.ai.action.edgeless-only.dialog-title" />
|
||||
),
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user