mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 01:38:45 +00:00
Reset gift message (#10540)
This commit is contained in:
parent
004ab51c46
commit
423eafbd4d
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<template lang="pug">
|
||||
b-modal#send-gems(:title="title", :hide-footer="true", size='lg')
|
||||
b-modal#send-gems(:title="title", :hide-footer="true", size='lg', @hide='onHide()')
|
||||
.modal-body(v-if='userReceivingGems')
|
||||
.panel.panel-default(
|
||||
:class="gift.type === 'gems' ? 'panel-primary' : 'transparent'",
|
||||
|
|
@ -138,6 +138,9 @@ export default {
|
|||
this.text(this.$t('sentGems'));
|
||||
this.close();
|
||||
},
|
||||
onHide () {
|
||||
this.gift.message = '';
|
||||
},
|
||||
close () {
|
||||
this.$root.$emit('bv::hide::modal', 'send-gems');
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue