fixed linting

This commit is contained in:
Markus 2023-07-11 11:41:52 +02:00
parent 8551cbd896
commit c99bbe3708
2 changed files with 33 additions and 30 deletions

View File

@ -79,8 +79,8 @@ export default {
{ {
name: 'dummyItem', name: 'dummyItem',
title: 'Just a dummy item', title: 'Just a dummy item',
} },
/*{ /* {
name: 'inviteUser', name: 'inviteUser',
title: 'Invite User', title: 'Invite User',
}, },
@ -221,10 +221,10 @@ export default {
this.refetchMessage(message.roomId) this.refetchMessage(message.roomId)
}, },
getInitialsName(fullname){ getInitialsName(fullname) {
if(!fullname) return if (!fullname) return
return fullname.match(/\b\w/g).join('').substring(0, 3).toUpperCase() return fullname.match(/\b\w/g).join('').substring(0, 3).toUpperCase()
} },
}, },
apollo: { apollo: {
Rooms: { Rooms: {
@ -266,24 +266,24 @@ body {
font-family: 'Quicksand', sans-serif; font-family: 'Quicksand', sans-serif;
} }
.vac-avatar { .vac-avatar {
background-size: cover; background-size: cover;
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: $color-primary-dark; background-color: $color-primary-dark;
color: $text-color-primary-inverse; color: $text-color-primary-inverse;
height: 42px; height: 42px;
width: 42px; width: 42px;
min-height: 42px; min-height: 42px;
min-width: 42px; min-width: 42px;
margin-right: 15px; margin-right: 15px;
border-radius: 50%; border-radius: 50%;
position: relative; position: relative;
> .initials{ > .initials {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
</style> </style>

View File

@ -14,7 +14,10 @@
<modal /> <modal />
</client-only> </client-only>
<div v-if="$store.getters['chat/showChat'].showChat" class="chat-modul"> <div v-if="$store.getters['chat/showChat'].showChat" class="chat-modul">
<chat-module v-on:close-single-room="closeSingleRoom" :singleRoomId="$store.getters['chat/showChat'].roomID" /> <chat-module
v-on:close-single-room="closeSingleRoom"
:singleRoomId="$store.getters['chat/showChat'].roomID"
/>
</div> </div>
</div> </div>
</template> </template>
@ -35,10 +38,10 @@ export default {
}, },
mixins: [seo, mobile()], mixins: [seo, mobile()],
methods: { methods: {
closeSingleRoom(){ closeSingleRoom() {
this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: 'u0' }); this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: 'u0' })
} },
} },
} }
</script> </script>