mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Sept 18 fixes (#9051)
* Added hover state to buy buttons * Translated profile * Fixed sending private message from member modal * Added payment functions * Added translation to home page * Fixed translation * Some front page styles * Fixed inbox sorting and searching * Added seasonals * Fixed buy gem modal conflict * Fixed paypal link * Fixed footer style crossover * Fixed quest update * Fixed sanity
This commit is contained in:
@@ -21,7 +21,6 @@ import notifications from 'client/mixins/notifications';
|
||||
|
||||
export default {
|
||||
mixins: [notifications],
|
||||
props: ['userIdToMessage'],
|
||||
components: {
|
||||
bModal,
|
||||
},
|
||||
@@ -29,8 +28,19 @@ export default {
|
||||
return {
|
||||
privateMessage: '',
|
||||
loading: false,
|
||||
userIdToMessage: '',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
userIdToMessageStore () {
|
||||
return this.$store.state.userIdToMessage;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
userIdToMessageStore () {
|
||||
this.userIdToMessage = this.userIdToMessageStore;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async sendPrivateMessage () {
|
||||
if (!this.privateMessage || !this.userIdToMessage) return;
|
||||
@@ -45,6 +55,8 @@ export default {
|
||||
this.loading = false;
|
||||
|
||||
this.text(this.$t('messageSentAlert'));
|
||||
|
||||
this.privateMessage = '';
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user