Move "toLocalNumber" to utils.
This commit is contained in:
parent
674eaa5eeb
commit
ce81fdc91e
5 changed files with 75 additions and 91 deletions
|
|
@ -12,13 +12,14 @@
|
|||
</template>
|
||||
<span>{{ $t("global.click_to_remove") }}</span>
|
||||
</v-tooltip>
|
||||
<v-icon v-else class="ma-1 ml-0 clickable" @click="onClickEmoji(name)">$vuetify.icons.ic_like</v-icon> {{ $i18n.toLocalNumbers(value.length.toFixed()) }}
|
||||
<v-icon v-else class="ma-1 ml-0 clickable" @click="onClickEmoji(name)">$vuetify.icons.ic_like</v-icon> {{ utils.toLocalNumbers(value.length.toFixed()) }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import messageOperationsMixin from "../messageOperationsMixin";
|
||||
import utils from "@/plugins/utils"
|
||||
|
||||
export default {
|
||||
mixins: [messageOperationsMixin],
|
||||
|
|
@ -38,6 +39,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
utils,
|
||||
reactionMap: {"❤️": []},
|
||||
reactions: null,
|
||||
REACTION_LIMIT: 5,
|
||||
|
|
@ -45,7 +47,6 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log("I18", this.$i18n.toLocalNumbers);
|
||||
this.reactions = this.timelineSet.relations.getChildEventsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
|
||||
this.event.on("Event.relationsCreated", this.onRelationsCreated);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue