Improvements to Challenge Layout (#9619)

This commit is contained in:
Marvin Rabe
2018-05-01 19:47:04 +02:00
parent 88b14592c5
commit eaa00598d0
6 changed files with 286 additions and 223 deletions

View File

@@ -0,0 +1,22 @@
<template lang="pug">
b-link(
v-if='group',
@click.prevent='goToGroup'
) {{group.name}}
</template>
<script>
export default {
props: ['group'],
methods: {
goToGroup () {
if (this.group.type === 'party') {
this.$router.push({name: 'party'});
} else {
this.$router.push({name: 'guild', params: {groupId: this.group._id}});
}
},
},
};
</script>