mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Reset gift message (#10540)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<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')
|
.modal-body(v-if='userReceivingGems')
|
||||||
.panel.panel-default(
|
.panel.panel-default(
|
||||||
:class="gift.type === 'gems' ? 'panel-primary' : 'transparent'",
|
:class="gift.type === 'gems' ? 'panel-primary' : 'transparent'",
|
||||||
@@ -138,6 +138,9 @@ export default {
|
|||||||
this.text(this.$t('sentGems'));
|
this.text(this.$t('sentGems'));
|
||||||
this.close();
|
this.close();
|
||||||
},
|
},
|
||||||
|
onHide () {
|
||||||
|
this.gift.message = '';
|
||||||
|
},
|
||||||
close () {
|
close () {
|
||||||
this.$root.$emit('bv::hide::modal', 'send-gems');
|
this.$root.$emit('bv::hide::modal', 'send-gems');
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user