diff options
author | Anthony Wang | 2023-02-05 16:23:21 -0500 |
---|---|---|
committer | Anthony Wang | 2023-02-05 16:23:21 -0500 |
commit | 53b54eb076246ffeb6c5c4e8b52a643696195333 (patch) | |
tree | 89315a4a19e43d787c86078c18d658c125ade9cb /demo/components/chat.js | |
parent | c11da4dd7e082fd54562c3676dc27f4a0e8e3048 (diff) |
Implement recursive commenting and sorting by number of likes
Diffstat (limited to 'demo/components/chat.js')
-rw-r--r-- | demo/components/chat.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/components/chat.js b/demo/components/chat.js index 2d68ee0..bffde26 100644 --- a/demo/components/chat.js +++ b/demo/components/chat.js @@ -1,9 +1,9 @@ import { Name } from './name.js' -import LikeButton from './like-button.js' +import Comments from './comment.js' export default { - components: { Name, LikeButton }, + components: { Name, Comments }, data: ()=> ({ message: '', @@ -42,7 +42,7 @@ export default { <em><Name :of="object._by"/></em>: {{ object.message }} - <LikeButton :messageID="object._id" /> + <Comments :messageID="object._id" /> <template v-if="object._by==$graffitiMyID"> <button @click="object.message+='!!';object._update()"> |