forked from mystiq/hydrogen-web
set destructive flag here too
This commit is contained in:
parent
245b5458d0
commit
128f9812a6
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ export class RoomView extends TemplateView {
|
|||
const vm = this.value;
|
||||
const options = [];
|
||||
if (vm.canLeave) {
|
||||
options.push(Menu.option(vm.i18n`Leave room`, () => vm.leaveRoom()));
|
||||
options.push(Menu.option(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive());
|
||||
}
|
||||
if (vm.canForget) {
|
||||
options.push(Menu.option(vm.i18n`Forget room`, () => vm.forgetRoom()));
|
||||
options.push(Menu.option(vm.i18n`Forget room`, () => vm.forgetRoom()).setDestructive());
|
||||
}
|
||||
if (vm.canRejoin) {
|
||||
options.push(Menu.option(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));
|
||||
|
|
Loading…
Reference in a new issue