keanu-weblite/src/components/messages/RoomHistoryVisibility.vue
N-Pex b1d47748c8 Use SASS module system
Get rid of all the SASS warnings/errors when building.
2025-05-19 10:25:46 +02:00

34 lines
No EOL
883 B
Vue

<template>
<!-- ROOM AVATAR CHANGED -->
<div class="statusEvent">
{{ $t('message.user_changed_room_history',{user: eventSenderDisplayName(event), type: history(event)}) }}
</div>
</template>
<script>
import messageMixin from "./messageMixin";
export default {
mixins: [messageMixin],
methods: {
history(event) {
const visibility = event.getContent().history_visibility;
switch (visibility) {
case "world_readable":
return this.$t('message.room_history_world_readable');
case "shared":
return this.$t('message.room_history_shared');
case "invited":
return this.$t('message.room_history_invited');
case "joined":
return this.$t('message.room_history_joined');
}
return visibility;
}
}
};
</script>
<style lang="scss">
@use "@/assets/css/chat.scss" as *;
</style>