mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
components/Message: fix eslint errors
This commit is contained in:
parent
6241eed8f4
commit
6c9d2c36a1
1 changed files with 5 additions and 1 deletions
|
@ -150,10 +150,14 @@ export default defineComponent({
|
|||
});
|
||||
|
||||
const messageComponent = computed(() => {
|
||||
return "message-" + props.message.type;
|
||||
return "message-" + (props.message.type || "invalid"); // TODO: force existence of type in sharedmsg
|
||||
});
|
||||
|
||||
const isAction = () => {
|
||||
if (!props.message.type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return typeof MessageTypes["message-" + props.message.type] !== "undefined";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue