2017-06-02 20:55:02 +00:00
|
|
|
|
<template lang="pug">
|
2017-06-27 20:02:55 +00:00
|
|
|
|
b-modal#guild-form(:title="title", :hide-footer="true", size='lg')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
form(@submit.stop.prevent="submit")
|
|
|
|
|
|
.form-group
|
|
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('name')}}*
|
2017-07-31 19:54:52 +00:00
|
|
|
|
b-form-input(type="text", :placeholder="$t('newGuildPlaceHolder')", v-model="workingGuild.name")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
.form-group(v-if='workingGuild.id && members.length > 0')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('guildLeader')}}*
|
2017-07-31 19:54:52 +00:00
|
|
|
|
select.form-control(v-model="workingGuild.newLeader")
|
2017-07-29 22:08:36 +00:00
|
|
|
|
option(v-for='member in members', :value="member._id") {{ member.profile.name }}
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('privacySettings')}}*
|
|
|
|
|
|
br
|
|
|
|
|
|
label.custom-control.custom-checkbox
|
2017-07-31 19:54:52 +00:00
|
|
|
|
input.custom-control-input(type="checkbox", v-model="workingGuild.onlyLeaderCreatesChallenges")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.custom-control-indicator
|
|
|
|
|
|
span.custom-control-description(v-once) {{ $t('onlyLeaderCreatesChallenges') }}
|
|
|
|
|
|
b-tooltip.icon(:content="$t('privateDescription')")
|
2017-06-08 19:04:19 +00:00
|
|
|
|
.svg-icon(v-html='icons.information')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
// br
|
|
|
|
|
|
// @TODO Implement in V2 label.custom-control.custom-checkbox
|
|
|
|
|
|
input.custom-control-input(type="checkbox", v-model="workingGuild.guildLeaderCantBeMessaged")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.custom-control-indicator
|
|
|
|
|
|
span.custom-control-description(v-once) {{ $t('guildLeaderCantBeMessaged') }}
|
|
|
|
|
|
|
|
|
|
|
|
br
|
2017-06-27 20:02:55 +00:00
|
|
|
|
label.custom-control.custom-checkbox(v-if='!creatingParty')
|
2017-07-31 19:54:52 +00:00
|
|
|
|
input.custom-control-input(type="checkbox", v-model="workingGuild.privateGuild")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.custom-control-indicator
|
|
|
|
|
|
span.custom-control-description(v-once) {{ $t('privateGuild') }}
|
|
|
|
|
|
b-tooltip.icon(:content="$t('privateDescription')")
|
2017-06-08 19:04:19 +00:00
|
|
|
|
.svg-icon(v-html='icons.information')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
// br
|
|
|
|
|
|
// @TODO: Implement in v2 label.custom-control.custom-checkbox(v-if='!creatingParty')
|
|
|
|
|
|
input.custom-control-input(type="checkbox", v-model="workingGuild.allowGuildInvationsFromNonMembers")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.custom-control-indicator
|
|
|
|
|
|
span.custom-control-description(v-once) {{ $t('allowGuildInvationsFromNonMembers') }}
|
|
|
|
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('description')}}*
|
|
|
|
|
|
div.description-count {{charactersRemaining}} {{ $t('charactersRemaining') }}
|
2017-07-31 19:54:52 +00:00
|
|
|
|
b-form-input(type="text", textarea :placeholder="creatingParty ? $t('partyDescriptionPlaceHolder') : $t('guildDescriptionPlaceHolder')", v-model="workingGuild.description")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
.form-group(v-if='workingGuild.id && !creatingParty')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('guildInformation')}}*
|
2017-07-31 19:54:52 +00:00
|
|
|
|
b-form-input(type="text", textarea, :placeholder="$t('guildInformationPlaceHolder')", v-model="workingGuild.guildInformation")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
.form-group(v-if='creatingParty && !workingGuild.id')
|
2017-06-27 20:02:55 +00:00
|
|
|
|
span
|
|
|
|
|
|
toggleSwitch(:label="$t('inviteMembersNow')", v-model='inviteMembers')
|
|
|
|
|
|
|
|
|
|
|
|
.form-group(style='position: relative;', v-if='!creatingParty')
|
2017-06-02 20:55:02 +00:00
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) {{$t('categories')}}*
|
|
|
|
|
|
div.category-wrap(@click.prevent="toggleCategorySelect")
|
2017-07-31 19:54:52 +00:00
|
|
|
|
span.category-select(v-if='workingGuild.categories.length === 0') {{$t('none')}}
|
|
|
|
|
|
.category-label(v-for='category in workingGuild.categories') {{$t(categoriesHashByKey[category])}}
|
2017-06-02 20:55:02 +00:00
|
|
|
|
.category-box(v-if="showCategorySelect")
|
|
|
|
|
|
.form-check(
|
|
|
|
|
|
v-for="group in categoryOptions",
|
|
|
|
|
|
:key="group.key",
|
|
|
|
|
|
)
|
|
|
|
|
|
label.custom-control.custom-checkbox
|
2017-08-01 12:30:17 +00:00
|
|
|
|
input.custom-control-input(type="checkbox", :value="group.key", v-model="workingGuild.categories")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.custom-control-indicator
|
|
|
|
|
|
span.custom-control-description(v-once) {{ $t(group.label) }}
|
|
|
|
|
|
button.btn.btn-primary(@click.prevent="toggleCategorySelect") {{$t('close')}}
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
.form-group(v-if='inviteMembers && !workingGuild.id')
|
2017-06-27 20:02:55 +00:00
|
|
|
|
label
|
|
|
|
|
|
strong(v-once) Invite via Email or User ID
|
|
|
|
|
|
p Invite users via a valid email or 36-digit User ID. If an email isn’t registered yet, we’ll invite them to join.
|
|
|
|
|
|
|
|
|
|
|
|
div
|
|
|
|
|
|
div(v-for='(member, index) in membersToInvite')
|
|
|
|
|
|
input(type='text', v-model='member.value')
|
|
|
|
|
|
button(@click.prevent='removeMemberToInvite(index)') Remove
|
|
|
|
|
|
div
|
|
|
|
|
|
input(type='text', placeholder='Email address or User ID', v-model='newMemberToInvite.value')
|
|
|
|
|
|
button(@click.prevent='addMemberToInvite()') Add
|
|
|
|
|
|
|
2017-06-02 20:55:02 +00:00
|
|
|
|
.form-group.text-center
|
2017-06-27 20:02:55 +00:00
|
|
|
|
div.item-with-icon(v-if='!creatingParty')
|
2017-06-08 19:04:19 +00:00
|
|
|
|
.svg-icon(v-html="icons.gem")
|
2017-06-02 20:55:02 +00:00
|
|
|
|
span.count 4
|
2017-07-31 19:54:52 +00:00
|
|
|
|
button.btn.btn-primary.btn-md(v-if='!workingGuild.id', :disabled='!workingGuild.name || !workingGuild.description') {{ creatingParty ? $t('createParty') : $t('createGuild') }}
|
|
|
|
|
|
button.btn.btn-primary.btn-md(v-if='workingGuild.id', :disabled='!workingGuild.name || !workingGuild.description') {{ creatingParty ? $t('updateParty') : $t('updateGuild') }}
|
2017-06-27 20:02:55 +00:00
|
|
|
|
.gem-description(v-once, v-if='!creatingParty') {{ $t('guildGemCostInfo') }}
|
2017-06-02 20:55:02 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
|
2017-06-08 19:04:19 +00:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
@import '~client/assets/scss/colors.scss';
|
|
|
|
|
|
|
2017-06-02 20:55:02 +00:00
|
|
|
|
textarea {
|
|
|
|
|
|
height: 150px;
|
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
|
|
2017-06-02 20:55:02 +00:00
|
|
|
|
.description-count, .gem-description {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 1.33;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
color: $gray-200;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.description-count {
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.gem-description {
|
|
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item-with-icon {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
margin-right: .5em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.count {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
margin-right: 1em;
|
|
|
|
|
|
color: $green-10;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.description-count {
|
|
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
|
margin-left: .5em;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
|
|
|
|
import bBtn from 'bootstrap-vue/lib/components/button';
|
|
|
|
|
|
import bFormInput from 'bootstrap-vue/lib/components/form-input';
|
|
|
|
|
|
import bFormCheckbox from 'bootstrap-vue/lib/components/form-checkbox';
|
|
|
|
|
|
import bFormSelect from 'bootstrap-vue/lib/components/form-select';
|
|
|
|
|
|
import bTooltip from 'bootstrap-vue/lib/components/tooltip';
|
|
|
|
|
|
|
2017-06-27 20:02:55 +00:00
|
|
|
|
import toggleSwitch from 'client/components/ui/toggleSwitch';
|
2017-06-08 19:04:19 +00:00
|
|
|
|
import gemIcon from 'assets/svg/gem.svg';
|
|
|
|
|
|
import informationIcon from 'assets/svg/information.svg';
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
// @TODO: Not sure the best way to pass party creating status
|
|
|
|
|
|
// Since we need the modal in the header, passing props doesn't work
|
|
|
|
|
|
// because we can't import the create group in the index of groups
|
|
|
|
|
|
// I think state is the correct spot, but maybe we should separate into
|
|
|
|
|
|
// two modals?
|
|
|
|
|
|
|
2017-06-02 20:55:02 +00:00
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
|
|
|
|
|
bModal,
|
|
|
|
|
|
bBtn,
|
|
|
|
|
|
bFormInput,
|
|
|
|
|
|
bFormCheckbox,
|
|
|
|
|
|
bFormSelect,
|
|
|
|
|
|
bTooltip,
|
2017-06-27 20:02:55 +00:00
|
|
|
|
toggleSwitch,
|
2017-06-02 20:55:02 +00:00
|
|
|
|
},
|
|
|
|
|
|
data () {
|
|
|
|
|
|
let data = {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
workingGuild: {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
type: 'guild',
|
|
|
|
|
|
privacy: 'private',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
guildInformation: '',
|
|
|
|
|
|
categories: [],
|
|
|
|
|
|
onlyLeaderCreatesChallenges: true,
|
|
|
|
|
|
guildLeaderCantBeMessaged: true,
|
|
|
|
|
|
privateGuild: true,
|
|
|
|
|
|
allowGuildInvationsFromNonMembers: true,
|
|
|
|
|
|
newLeader: '',
|
|
|
|
|
|
},
|
|
|
|
|
|
categoryOptions: [
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'animals',
|
|
|
|
|
|
key: 'animals',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'artDesign',
|
|
|
|
|
|
key: 'art_design',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'booksWriting',
|
|
|
|
|
|
key: 'books_writing',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'comicsHobbies',
|
|
|
|
|
|
key: 'comics_hobbies',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'diyCrafts',
|
|
|
|
|
|
key: 'diy_crafts',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'education',
|
|
|
|
|
|
key: 'education',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'foodCooking',
|
|
|
|
|
|
key: 'food_cooking',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'healthFitness',
|
|
|
|
|
|
key: 'health_fitness',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'music',
|
|
|
|
|
|
key: 'music',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'relationship',
|
|
|
|
|
|
key: 'relationship',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: 'scienceTech',
|
|
|
|
|
|
key: 'science_tech ',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
showCategorySelect: false,
|
2017-07-29 22:08:36 +00:00
|
|
|
|
members: [],
|
2017-06-27 20:02:55 +00:00
|
|
|
|
inviteMembers: false,
|
|
|
|
|
|
newMemberToInvite: {
|
|
|
|
|
|
value: '',
|
|
|
|
|
|
type: '',
|
|
|
|
|
|
},
|
|
|
|
|
|
membersToInvite: [],
|
2017-06-02 20:55:02 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let hashedCategories = {};
|
|
|
|
|
|
data.categoryOptions.forEach((category) => {
|
|
|
|
|
|
hashedCategories[category.key] = category.label;
|
|
|
|
|
|
});
|
|
|
|
|
|
data.categoriesHashByKey = hashedCategories;
|
|
|
|
|
|
|
2017-06-08 19:04:19 +00:00
|
|
|
|
data.icons = Object.freeze({
|
|
|
|
|
|
gem: gemIcon,
|
|
|
|
|
|
information: informationIcon,
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2017-06-02 20:55:02 +00:00
|
|
|
|
return data;
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted () {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
// @TODO: do we need this? Maybe us computed. If we need, then make it on show a specific modal
|
2017-06-02 20:55:02 +00:00
|
|
|
|
this.$root.$on('shown::modal', () => {
|
|
|
|
|
|
let editingGroup = this.$store.state.editingGroup;
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!editingGroup._id) return;
|
|
|
|
|
|
this.workingGuild.name = editingGroup.name;
|
|
|
|
|
|
this.workingGuild.type = editingGroup.type;
|
|
|
|
|
|
this.workingGuild.privacy = editingGroup.privacy;
|
|
|
|
|
|
if (editingGroup.description) this.workingGuild.description = editingGroup.description;
|
|
|
|
|
|
if (editingGroup._id) this.workingGuild.id = editingGroup._id;
|
|
|
|
|
|
if (editingGroup.leader._id) this.workingGuild.newLeader = editingGroup.leader._id;
|
|
|
|
|
|
if (editingGroup._id) this.getMembers();
|
2017-06-02 20:55:02 +00:00
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
charactersRemaining () {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
return 500 - this.workingGuild.description.length;
|
2017-06-02 20:55:02 +00:00
|
|
|
|
},
|
|
|
|
|
|
title () {
|
2017-06-27 20:02:55 +00:00
|
|
|
|
if (this.creatingParty) return this.$t('createParty');
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.id) return this.$t('createGuild');
|
2017-06-02 20:55:02 +00:00
|
|
|
|
return this.$t('updateGuild');
|
|
|
|
|
|
},
|
2017-07-31 19:54:52 +00:00
|
|
|
|
creatingParty () {
|
|
|
|
|
|
return this.$store.state.groupFormOptions.createParty;
|
|
|
|
|
|
},
|
2017-06-02 20:55:02 +00:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2017-07-29 22:08:36 +00:00
|
|
|
|
async getMembers () {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.id) return;
|
2017-07-29 22:08:36 +00:00
|
|
|
|
let members = await this.$store.dispatch('members:getGroupMembers', {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
groupId: this.workingGuild.id,
|
2017-07-29 22:08:36 +00:00
|
|
|
|
includeAllPublicFields: true,
|
|
|
|
|
|
});
|
|
|
|
|
|
this.members = members;
|
|
|
|
|
|
},
|
2017-06-27 20:02:55 +00:00
|
|
|
|
addMemberToInvite () {
|
|
|
|
|
|
// @TODO: determine type
|
|
|
|
|
|
this.membersToInvite.push(this.newMemberToInvite);
|
|
|
|
|
|
this.newMemberToInvite = {
|
|
|
|
|
|
value: '',
|
|
|
|
|
|
type: '',
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
removeMemberToInvite (index) {
|
|
|
|
|
|
this.membersToInvite.splice(index, 1);
|
|
|
|
|
|
},
|
2017-06-02 20:55:02 +00:00
|
|
|
|
toggleCategorySelect () {
|
|
|
|
|
|
this.showCategorySelect = !this.showCategorySelect;
|
|
|
|
|
|
},
|
|
|
|
|
|
async submit () {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (this.$store.state.user.data.balance < 1 && !this.workingGuild.id) {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
// @TODO: Add proper notifications
|
|
|
|
|
|
alert('Not enough gems');
|
|
|
|
|
|
return;
|
|
|
|
|
|
// @TODO return $rootScope.openModal('buyGems', {track:"Gems > Create Group"});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.name || !this.workingGuild.description) {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
// @TODO: Add proper notifications
|
|
|
|
|
|
alert('Enter a name and description');
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (this.workingGuild.description.length > 500) {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
// @TODO: Add proper notifications
|
|
|
|
|
|
alert('Description is too long');
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @TODO: Add proper notifications
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.id && !confirm(this.$t('confirmGuild'))) return;
|
2017-06-02 20:55:02 +00:00
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.privateGuild) {
|
|
|
|
|
|
this.workingGuild.privacy = 'public';
|
2017-06-02 20:55:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (!this.workingGuild.onlyLeaderCreatesChallenges) {
|
|
|
|
|
|
this.workingGuild.leaderOnly = {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
challenges: true,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
if (this.workingGuild.id) {
|
|
|
|
|
|
await this.$store.dispatch('guilds:update', {group: this.workingGuild});
|
2017-07-29 22:08:36 +00:00
|
|
|
|
// @TODO: this doesn't work because of the async resource
|
|
|
|
|
|
// if (updatedGroup.type === 'party') this.$store.state.party = {data: updatedGroup};
|
2017-06-02 20:55:02 +00:00
|
|
|
|
} else {
|
2017-07-31 19:54:52 +00:00
|
|
|
|
await this.$store.dispatch('guilds:create', {group: this.workingGuild});
|
|
|
|
|
|
this.$store.state.user.balance -= 1;
|
2017-06-02 20:55:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.$store.state.editingGroup = {};
|
|
|
|
|
|
|
2017-07-31 19:54:52 +00:00
|
|
|
|
this.workingGuild = {
|
2017-06-02 20:55:02 +00:00
|
|
|
|
name: '',
|
|
|
|
|
|
type: 'guild',
|
|
|
|
|
|
privacy: 'private',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
categories: [],
|
|
|
|
|
|
onlyLeaderCreatesChallenges: true,
|
|
|
|
|
|
guildLeaderCantBeMessaged: true,
|
|
|
|
|
|
privateGuild: true,
|
|
|
|
|
|
allowGuildInvationsFromNonMembers: true,
|
|
|
|
|
|
};
|
2017-06-27 20:02:55 +00:00
|
|
|
|
|
|
|
|
|
|
this.$root.$emit('hide::modal', 'guild-form');
|
2017-06-02 20:55:02 +00:00
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|