From 98ef6f432183ffbdc263339909b4d11a851cb9b5 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 3 Jun 2021 21:05:54 +0530 Subject: [PATCH] Use optionWithButton Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/room/timeline/BaseMessageView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/web/ui/session/room/timeline/BaseMessageView.js b/src/platform/web/ui/session/room/timeline/BaseMessageView.js index 60b39048..4ecde2ba 100644 --- a/src/platform/web/ui/session/room/timeline/BaseMessageView.js +++ b/src/platform/web/ui/session/room/timeline/BaseMessageView.js @@ -93,9 +93,9 @@ export class BaseMessageView extends TemplateView { createMenuOptions(vm) { const options = []; if (vm.canAbortSending) { - options.push(Menu.option(vm.i18n`Cancel`, () => vm.abortSending())); + options.push(Menu.optionWithButton(vm.i18n`Cancel`, () => vm.abortSending())); } else if (vm.canRedact) { - options.push(Menu.option(vm.i18n`Delete`, () => vm.redact()).setDestructive()); + options.push(Menu.optionWithButton(vm.i18n`Delete`, () => vm.redact()).setDestructive()); } return options; }