SearchResults: lint

This commit is contained in:
Mary Strodl 2021-01-26 18:56:53 -05:00 committed by Nachtalb
parent e6856a9e7d
commit 49cd90d0e9
No known key found for this signature in database
GPG key ID: E48DF13C07055D92

View file

@ -56,7 +56,7 @@
aria-relevant="additions"
>
<template v-for="(message, id) in messages">
<div class="result" v-on:click="jump(message, id)">
<div :key="message.id" class="result" @:click="jump(message, id)">
<DateMarker
v-if="shouldDisplayDateMarker(message, id)"
:key="message.date"
@ -216,15 +216,15 @@ export default {
// TODO: Implement jumping to messages!
// This is difficult because it means client will need to handle a potentially nonlinear message set
// (loading IntersectionObserver both before AND after the messages)
// this.$router.push({
// name: "MessageList",
// params: {
// id: this.chan.id,
// },
// query: {
// focused: id
// }
// });
this.$router.push({
name: "MessageList",
params: {
id: this.chan.id,
},
query: {
focused: id,
},
});
},
},
};