fix(annotator): fix instant action on Android (#3042)
This commit is contained in:
@@ -27,7 +27,11 @@ const QuickActionMenu: React.FC<QuickActionMenuProps> = ({
|
||||
eventDispatcher.dispatch('toast', {
|
||||
type: 'info',
|
||||
timeout: 2000,
|
||||
message: _('Quick action disabled'),
|
||||
message: _('Instant {{action}} Disabled', {
|
||||
action: _(
|
||||
annotationToolQuickActions.find((btn) => btn.type === action)?.label || _('Annotation'),
|
||||
),
|
||||
}),
|
||||
});
|
||||
} else {
|
||||
eventDispatcher.dispatch('toast', {
|
||||
@@ -53,7 +57,7 @@ const QuickActionMenu: React.FC<QuickActionMenuProps> = ({
|
||||
{annotationToolQuickActions.map((button) => (
|
||||
<MenuItem
|
||||
key={button.type}
|
||||
label={_(button.label)}
|
||||
label={_('Instant {{action}}', { action: _(button.label) })}
|
||||
tooltip={_(button.tooltip)}
|
||||
buttonClass={selectedAction === button.type ? 'bg-base-300/85' : ''}
|
||||
Icon={button.Icon}
|
||||
|
||||
Reference in New Issue
Block a user