mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
fix: copy share link to clipboard command display issue (#7411)
fix AF-1027
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { registerAffineCommand } from '@affine/core/commands';
|
||||
import {
|
||||
PreconditionStrategy,
|
||||
registerAffineCommand,
|
||||
} from '@affine/core/commands';
|
||||
import { useSharingUrl } from '@affine/core/hooks/affine/use-share-url';
|
||||
import { useIsActiveView } from '@affine/core/modules/workbench';
|
||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||
@@ -28,7 +31,7 @@ export function useRegisterCopyLinkCommands({
|
||||
registerAffineCommand({
|
||||
id: `affine:share-private-link:${docId}`,
|
||||
category: 'affine:general',
|
||||
preconditionStrategy: () => isActiveView,
|
||||
preconditionStrategy: PreconditionStrategy.Never,
|
||||
keyBinding: {
|
||||
binding: '$mod+Shift+c',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user