mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
* Discover challenges * Fixed hero loading * Moved add task button * Fixed bailey showing * Added logs for bad sub data * Fixed blurb editing * Added confirmation for deleteing message * Reset invite modals on invite * fixed group member sorting * Fixed chat time styles * Fixed hover on liked * Fixed like count * Added reverse * Fixed editing party * Added leader conditions * Added search * Added loading * Reset members when leaving party * Rounded pending * Fixed overflow on collecting quests * Added to invite friends * Hid summary from party * Fixed button styles * Fixed button class * Removed okay button * Fixed renav for profile modal * Added subscription back to menu * Fixed static link * Added daily due setting * Added local auth adding * Fixed centering of text * Removed message locally * Added count for new message * Added style fix for profile pet * Fixed achievement popovers * Fixed white boxes * Added plain color backgrounds * fixed challenge mutability * Fixed challenge editing * Added notation for large numbers * Add color text to guild sizes * Removed membership filters from discover challenges * Added invites to group * Cmd + enter send message * Made leader clickable * Updated group validation * Added cancelling autocomplete * Added mention icon * Added removing member * Removed extra string
54 lines
1.3 KiB
Vue
54 lines
1.3 KiB
Vue
<template lang="pug">
|
|
b-modal#remove-member(:title="$t('removeMember')", size='md', :hide-footer="true")
|
|
.text-center
|
|
h2.col-12 {{ $t('sureKick') }}
|
|
.col-12.removing-member(v-if='memberToRemove.profile') {{memberToRemove.profile.name}}
|
|
.modal-body
|
|
textarea.form-control(type='text',
|
|
rows='5',
|
|
:placeholder="$t('optionalMessage')",
|
|
v-model='removeMessage')
|
|
.modal-footer
|
|
button.pull-left.btn.btn-danger(@click='confirmRemoveMember()') {{ $t('yesRemove') }}
|
|
button.btn.btn-default(@click='close()') {{ $t('cancel') }}
|
|
</template>
|
|
|
|
<style scoped>
|
|
.removing-member {
|
|
color: #878190;
|
|
margin-bottom: .5em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
|
|
export default {
|
|
props: ['memberToRemove', 'groupId'],
|
|
components: {
|
|
bModal,
|
|
},
|
|
data () {
|
|
return {
|
|
removeMessage: '',
|
|
};
|
|
},
|
|
methods: {
|
|
async confirmRemoveMember () {
|
|
await this.$store.dispatch('members:removeMember', {
|
|
memberId: this.memberToRemove._id,
|
|
groupId: this.groupId,
|
|
message: this.removeMessage,
|
|
});
|
|
|
|
this.removeMessage = '';
|
|
this.$emit('member-removed', this.memberToRemove);
|
|
this.close();
|
|
},
|
|
close () {
|
|
this.$root.$emit('hide::modal', 'remove-member');
|
|
},
|
|
},
|
|
};
|
|
</script>
|