mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
chore(editor): hide file and doc import entries for mobile (#11648)
Close [BS-2926](https://linear.app/affine-design/issue/BS-2926/【移动端-ios】-选择import,无反应) Close [BS-2927](https://linear.app/affine-design/issue/BS-2927/【移动端-ios】隐藏toolbar上附件入口)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user