mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* update bootstrap-vue to 1.0.0-beta.9 - remove all individual bootstrap components and use BootstrapVue into Vue * change modal action names from show::modal to bv::show::modal * check if drops are undefined * fix modal widths - sellModal now using input instead of dropbox * upgrade to bootstrap 4.0beta * include package-lock changes * fix app menu dropdown position * upgrade bootstrap to beta2 (was missing grid offset and other fixes) - refix header menu position * fix tags popup (auto width to max not working) - fix filter panel width (adding width: 100% works until max-width) * show hide logo on different screensize (new css breakpoints - http://getbootstrap.com/docs/4.0/utilities/display/ ) * fix package-lock? * fix active button style / app header toggle button * fix package-lock ! * update package lock after merge - new mixin "openedItemRows" to save the "show more/show less" in stable * mixin naming style * fix buyQuestModal marginTop * fix customMenuDropdown position * fix userDropdown items
49 lines
1.2 KiB
Vue
49 lines
1.2 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>
|
|
export default {
|
|
props: ['memberToRemove', 'groupId'],
|
|
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('bv::hide::modal', 'remove-member');
|
|
},
|
|
},
|
|
};
|
|
</script>
|