diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index d99cffc..c4398ae 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -36,6 +36,7 @@ "logout": "Logout", "new_room": "New Room", "undo": "Undo", + "delete_now": "Delete now", "join": "Join", "ignore": "Ignore", "loading": "Loading {appName}", @@ -270,7 +271,7 @@ "info": "All members and messages will be removed. This action cannot be undone.", "button": "Delete", "n_seconds": "{seconds} seconds", - "self_destruct": "Room will self destruct in seconds.", + "self_destruct": "Your room will self destruct in seconds.", "deleting": "Deleting room:", "notified": "We've notified members.", "room_deletion_notice": "Time to say goodbye! This room has been deleted by {user}. It will self destruct in seconds." diff --git a/src/components/PurgeRoomDialog.vue b/src/components/PurgeRoomDialog.vue index 671a038..d437397 100644 --- a/src/components/PurgeRoomDialog.vue +++ b/src/components/PurgeRoomDialog.vue @@ -55,8 +55,8 @@ class="d-inline-block me-2" src="@/assets/icons/timer.svg" />{{ $t("purge_room.n_seconds", { seconds: timeout }) }} -

{{ $t("purge_room.self_destruct") }}

-
+

{{ $t("purge_room.self_destruct") }}

+
{{ $t("purge_room.notified") }}
@@ -65,7 +65,7 @@ - + {{ $t("menu.undo") }} + + + {{ $t("menu.delete_now") }} + +
@@ -156,17 +161,18 @@ export default { { status: "delete" } ); - this.timeout = 5; + this.timeout = 7; this.timeoutTimer = setInterval(() => { this.timeout = this.timeout - 1; if (this.timeout == 0) { - clearInterval(this.timeoutTimer); - this.timeoutTimer = null; this.onDoPurgeRoom(); } }, 1000); }, onDoPurgeRoom() { + this.timeout = 0 + clearInterval(this.timeoutTimer); + this.timeoutTimer = null; this.isPurging = true; this.$matrix .purgeRoom(this.room.roomId, this.onPurgeStatus)