set destructive flag here too

This commit is contained in:
Bruno Windels 2021-05-31 13:08:06 +02:00
parent 245b5458d0
commit 128f9812a6

View File

@ -68,10 +68,10 @@ export class RoomView extends TemplateView {
const vm = this.value; const vm = this.value;
const options = []; const options = [];
if (vm.canLeave) { 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) { 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) { if (vm.canRejoin) {
options.push(Menu.option(vm.i18n`Rejoin room`, () => vm.rejoinRoom())); options.push(Menu.option(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));