Commit 57ccfb9a authored by Fatih Acet's avatar Fatih Acet

Fix some ESLint errors.

parent 16a5808e
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
return { return {
registerLink: '#', registerLink: '#',
signInLink: '#', signInLink: '#',
} };
}, },
computed: { computed: {
discussion() { discussion() {
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
this.signInLink = signInLink.getAttribute('href'); this.signInLink = signInLink.getAttribute('href');
} }
}, },
} };
</script> </script>
<template> <template>
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
components: { components: {
TimeAgoTooltip, TimeAgoTooltip,
}, },
} };
</script> </script>
<template> <template>
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
discussionId: { discussionId: {
type: String, type: String,
required: false, required: false,
} },
}, },
components: { components: {
TimeAgoTooltip, TimeAgoTooltip,
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
}, },
componentData(note) { componentData(note) {
return note.individual_note ? note.notes[0] : note; return note.individual_note ? note.notes[0] : note;
} },
}, },
mounted() { mounted() {
const path = this.$el.parentNode.dataset.discussionsPath; const path = this.$el.parentNode.dataset.discussionsPath;
......
...@@ -18,7 +18,7 @@ const mutations = { ...@@ -18,7 +18,7 @@ const mutations = {
storeState.notes = notes; storeState.notes = notes;
}, },
toggleDiscussion(storeState, { discussionId }) { toggleDiscussion(storeState, { discussionId }) {
const [ discussion ] = storeState.notes.filter((note) => note.id === discussionId); const [discussion] = storeState.notes.filter(note => note.id === discussionId);
discussion.expanded = !discussion.expanded; discussion.expanded = !discussion.expanded;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment