frontend: remove unnecessary response variable in room deletion methods and update force delete description
This commit is contained in:
parent
ebfb07607f
commit
aba5269b54
@ -278,7 +278,7 @@ export class RoomsComponent implements OnInit {
|
|||||||
|
|
||||||
const forceDeleteCallback = async () => {
|
const forceDeleteCallback = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await this.roomService.deleteRoom(roomId, true); // force = true
|
await this.roomService.deleteRoom(roomId, true);
|
||||||
|
|
||||||
const currentRooms = this.rooms();
|
const currentRooms = this.rooms();
|
||||||
this.rooms.set(currentRooms.filter((r) => r.roomId !== roomId));
|
this.rooms.set(currentRooms.filter((r) => r.roomId !== roomId));
|
||||||
@ -360,7 +360,7 @@ export class RoomsComponent implements OnInit {
|
|||||||
const bulkForceDeleteCallback = async () => {
|
const bulkForceDeleteCallback = async () => {
|
||||||
try {
|
try {
|
||||||
const roomIds = rooms.map((r) => r.roomId);
|
const roomIds = rooms.map((r) => r.roomId);
|
||||||
const response = await this.roomService.bulkDeleteRooms(roomIds, true);
|
await this.roomService.bulkDeleteRooms(roomIds, true);
|
||||||
|
|
||||||
const currentRooms = this.rooms();
|
const currentRooms = this.rooms();
|
||||||
this.rooms.set(currentRooms.filter((r) => !roomIds.includes(r.roomId)));
|
this.rooms.set(currentRooms.filter((r) => !roomIds.includes(r.roomId)));
|
||||||
@ -381,7 +381,7 @@ export class RoomsComponent implements OnInit {
|
|||||||
showForceCheckbox: true,
|
showForceCheckbox: true,
|
||||||
forceCheckboxText: 'Force delete',
|
forceCheckboxText: 'Force delete',
|
||||||
forceCheckboxDescription:
|
forceCheckboxDescription:
|
||||||
'This will immediately disconnect all active participants and delete the room without waiting for participants to leave',
|
'This will immediately disconnect all active participants and delete all rooms without waiting for participants to leave',
|
||||||
forceConfirmCallback: bulkForceDeleteCallback
|
forceConfirmCallback: bulkForceDeleteCallback
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user