mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Use optionWithButton
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
a3271fb916
commit
98ef6f4321
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user