34 lines
No EOL
708 B
Vue
34 lines
No EOL
708 B
Vue
<template>
|
|
<div class="statusEvent">
|
|
{{
|
|
openToGuests
|
|
? $t("message.user_changed_guest_access_open", {
|
|
user: eventSenderDisplayName(event),
|
|
})
|
|
: $t("message.user_changed_guest_access_closed", {
|
|
user: eventSenderDisplayName(event),
|
|
})
|
|
}}
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import messageMixin from "./messageMixin";
|
|
|
|
export default {
|
|
mixins: [messageMixin],
|
|
computed: {
|
|
openToGuests() {
|
|
const access = this.event.getContent().guest_access;
|
|
if (access && access == "forbidden") {
|
|
return false;
|
|
}
|
|
return true;
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@use "@/assets/css/chat.scss" as *;
|
|
</style> |