L-Sun
2025-04-13 05:32:15 +00:00
parent f860f77a24
commit 26d2ed8afb
2 changed files with 72 additions and 69 deletions

View File

@@ -428,8 +428,7 @@ const contentMediaToolGroup: KeyboardToolPanelGroup = {
{
name: 'Attachment',
icon: AttachmentIcon(),
showWhen: ({ std }) =>
std.store.schema.flavourSchemaMap.has('affine:attachment'),
showWhen: () => false,
action: async ({ std }) => {
const [_, { selectedModels }] = std.command.exec(
getSelectedModelsCommand
@@ -1029,8 +1028,7 @@ export const defaultKeyboardToolbarConfig: KeyboardToolbarConfig = {
{
name: 'Attachment',
icon: AttachmentIcon(),
showWhen: ({ std }) =>
std.store.schema.flavourSchemaMap.has('affine:attachment'),
showWhen: () => false,
action: async ({ std }) => {
const [_, { selectedModels }] = std.command.exec(
getSelectedModelsCommand