Update welcome message

Issue #141.
This commit is contained in:
N-Pex 2021-06-22 15:46:37 +02:00
parent 03f7759b6c
commit ebceb450f9
3 changed files with 14 additions and 17 deletions

View file

@ -869,7 +869,7 @@ $admin-fg: white;
} }
.created-room-welcome-header { .created-room-welcome-header {
background-color: #e0e0e0; background-color: #f5f5f5;
border-radius: 25px; border-radius: 25px;
margin: 20px; margin: 20px;
padding: 20px; padding: 20px;

View file

@ -63,13 +63,13 @@
"room_list_rooms": "Rooms" "room_list_rooms": "Rooms"
}, },
"room_welcome": { "room_welcome": {
"welcome": "Welcome!", "info": "Welcome! Here are a few things to know about your room:",
"info": "Here are a few things to know about your group:",
"encrypted": "Messages are end-to-end encrypted.", "encrypted": "Messages are end-to-end encrypted.",
"room_history_is": "Room history is {type}.", "room_history_is": "Room history is {type}.",
"room_history_joined": "People can only see the messages sent after they join.",
"join_public": "Anyone can join by opening this link: {link}.", "join_public": "Anyone can join by opening this link: {link}.",
"join_invite": "Only people you invite can join.", "join_invite": "Only people you invite can join.",
"info_permissions": "You can change 'join permissions' and 'message history' at any time in the group settings.", "info_permissions": "You can change join permissions at any time in the room settings.",
"got_it": "Got it" "got_it": "Got it"
}, },
"new_room": { "new_room": {

View file

@ -1,13 +1,6 @@
<template> <template>
<div class="created-room-welcome-header"> <div class="created-room-welcome-header">
<div class="h4">{{ $t("room_welcome.welcome") }}</div> <div>{{ $t("room_welcome.info") }}</div>
<div class="mt-2">{{ $t("room_welcome.info") }}</div>
<div class="mt-2" v-if="roomIsEncrypted">
{{ $t("room_welcome.encrypted") }}
</div>
<div class="mt-2" v-if="roomHistoryDescription">
{{ roomHistoryDescription }}
</div>
<div class="mt-2" v-if="roomJoinRule == 'public'"> <div class="mt-2" v-if="roomJoinRule == 'public'">
<i18n path="room_welcome.join_public" tag="span"> <i18n path="room_welcome.join_public" tag="span">
<template v-slot:link> <template v-slot:link>
@ -19,8 +12,14 @@
{{ $t("room_welcome.join_invite") }} {{ $t("room_welcome.join_invite") }}
</div> </div>
<div class="mt-2">{{ $t("room_welcome.info_permissions") }}</div> <div class="mt-2">{{ $t("room_welcome.info_permissions") }}</div>
<div class="mt-2" v-if="roomIsEncrypted">
{{ $t("room_welcome.encrypted") }}
</div>
<div class="mt-2" v-if="roomHistoryDescription">
{{ roomHistoryDescription }}
</div>
<div class="text-right"> <div class="text-right">
<v-btn text @click.stop="$emit('close')">{{ <v-btn text @click.stop="$emit('close')" style="text-transform: none">{{
$t("room_welcome.got_it") $t("room_welcome.got_it")
}}</v-btn> }}</v-btn>
</div> </div>
@ -50,9 +49,7 @@ export default {
type: this.$t("message.room_history_invited"), type: this.$t("message.room_history_invited"),
}); });
case "joined": case "joined":
return this.$t("room_welcome.room_history_is", { return this.$t("room_welcome.room_history_joined");
type: this.$t("message.room_history_joined"),
});
} }
return null; return null;
}, },