mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): edgeless toolbar linked doc custom config extension (#10883)
This commit is contained in:
@@ -314,6 +314,7 @@ function renderActionItem(action: ToolbarAction, context: ToolbarContext) {
|
||||
?active=${typeof action.active === 'function'
|
||||
? action.active(context)
|
||||
: action.active}
|
||||
?disabled=${action.disabled}
|
||||
.tooltip=${action.tooltip}
|
||||
@click=${() => action.run?.(context)}
|
||||
>
|
||||
@@ -336,6 +337,7 @@ function renderMenuActionItem(action: ToolbarAction, context: ToolbarContext) {
|
||||
?active=${typeof action.active === 'function'
|
||||
? action.active(context)
|
||||
: action.active}
|
||||
?disabled=${action.disabled}
|
||||
.tooltip=${ifDefined(action.tooltip)}
|
||||
@click=${() => action.run?.(context)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user