mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 11:43:08 +02:00
43930e6a84
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* Update storage.ts
* Update storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* 🍕
* wip
* wip
* wip
* wip
* wip
* wip
* Update deck-storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update store.ts
* wip
* wip
* wip
* wip
* Update init.ts
* wip
* wip
* Update pizzax.ts
* wip
* wip
* Update timeline.vue
* Update init.ts
* wip
* wip
* Update init.ts
48 lines
856 B
Vue
48 lines
856 B
Vue
<template>
|
|
<div class="tdflqwzn" :class="{ isMe }">
|
|
<XReaction v-for="(count, reaction) in note.reactions" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note" :key="reaction"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import XReaction from './reactions-viewer.reaction.vue';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XReaction
|
|
},
|
|
props: {
|
|
note: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
initialReactions: new Set(Object.keys(this.note.reactions))
|
|
};
|
|
},
|
|
computed: {
|
|
isMe(): boolean {
|
|
return this.$i && this.$i.id === this.note.userId;
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.tdflqwzn {
|
|
margin: 4px -2px 0 -2px;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
&.isMe {
|
|
> span {
|
|
cursor: default !important;
|
|
}
|
|
}
|
|
}
|
|
</style>
|