Skip to content
Snippets Groups Projects
Unverified Commit 658b31d2 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix updating a prop


We have to do via emit, not assign a new value directly. Vue will
otherwise complain and do weird stuff.

Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 8491d742
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
v-if="collapsible && envelopes.length > collapseThreshold"
:key="'list-collapse-' + this.searchQuery"
class="collapse-expand"
@click="collapsed = !collapsed"
@click="$emit('update:collapsed', !collapsed)"
>
<template v-if="collapsed">{{ t('mail', 'Show all {nr} messages', {nr: envelopes.length}) }}</template>
<template v-else>{{ t('mail', 'Collapse messages') }}</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment