diff options
Diffstat (limited to 'demo/components')
-rw-r--r-- | demo/components/chat.js | 4 | ||||
-rw-r--r-- | demo/components/moderation.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/demo/components/chat.js b/demo/components/chat.js index bffde26..5095dcd 100644 --- a/demo/components/chat.js +++ b/demo/components/chat.js @@ -45,11 +45,11 @@ export default { <Comments :messageID="object._id" /> <template v-if="object._by==$graffitiMyID"> - <button @click="object.message+='!!';object._update()"> + <button @click="object.message+='!!'"> ‼️ </button> - <button @click="object._remove()"> + <button @click="delete object._key"> ❌ </button> </template> diff --git a/demo/components/moderation.js b/demo/components/moderation.js index 4cf8071..5e12fb0 100644 --- a/demo/components/moderation.js +++ b/demo/components/moderation.js @@ -51,7 +51,7 @@ export default { <ul v-for="object in messageObjects(objects)"> <graffiti-objects :tags="[object._id]" v-slot="{objects: responses}"> - <li v-if="likeObjects(responses, object._id).filter(o=> o._by=admin).length"> + <li v-if="likeObjects(responses, object._id).filter(o=> o._by==admin).length"> <em><Name :of="object._by"/></em>: {{ object.message }} </li> |