mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
35 lines
672 B
Vue
35 lines
672 B
Vue
<template>
|
|
<base-notification
|
|
:can-remove="canRemove"
|
|
:notification="notification"
|
|
:read-after-click="true"
|
|
@click="action"
|
|
>
|
|
<div
|
|
slot="content"
|
|
v-html="achievementString"
|
|
></div>
|
|
</base-notification>
|
|
</template>
|
|
|
|
<script>
|
|
import BaseNotification from './base';
|
|
|
|
export default {
|
|
components: {
|
|
BaseNotification,
|
|
},
|
|
props: ['notification', 'canRemove'],
|
|
computed: {
|
|
achievementString () {
|
|
return `<strong>${this.$t('achievement')}</strong>: ${this.$t('achievementJustAddWater')}`;
|
|
},
|
|
},
|
|
methods: {
|
|
action () {
|
|
this.$root.$emit('bv::show::modal', 'just-add-water');
|
|
},
|
|
},
|
|
};
|
|
</script>
|