0
0
This commit is contained in:
syuilo 2019-05-21 08:44:36 +09:00
parent f128813a5e
commit c7daaba370
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
4 changed files with 41 additions and 3 deletions

View File

@ -0,0 +1,27 @@
<template>
<div>
<mk-avatar v-for="user in us" :user="user" :key="user.id" style="width:32px;height:32px;"/>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: {
userIds: {
required: true
},
},
data() {
return {
us: []
};
},
async created() {
this.us = await this.$root.api('users/show', {
userIds: this.userIds
});
}
});
</script>

View File

@ -19,7 +19,6 @@ export default Vue.extend({
});
</script>
<style lang="stylus" scoped>
.a
display block

View File

@ -9,6 +9,7 @@
<ui-hr/>
<ui-margin>
<router-link :to="`/i/groups/${group.id}`">{{ group.name }}</router-link>
<x-avatars :user-ids="group.userIds" style="margin-top:8px;"/>
</ui-margin>
</div>
</ui-container>
@ -18,7 +19,8 @@
<div class="hwgkdrbl" v-for="(group, i) in joinedGroups" :key="group.id">
<ui-hr v-if="i != 0"/>
<ui-margin>
<router-link :to="`/i/groups/${group.id}`">{{ group.name }}</router-link>
<div>{{ group.name }}</div>
<x-avatars :user-ids="group.userIds" style="margin-top:8px;"/>
</ui-margin>
</div>
</ui-container>
@ -29,6 +31,7 @@
<ui-hr v-if="i != 0"/>
<ui-margin>
<div class="name">{{ invite.group.name }}</div>
<x-avatars :user-ids="invite.group.userIds" style="margin-top:8px;"/>
<ui-horizon-group>
<ui-button @click="acceptInvite(invite)"><fa :icon="faCheck"/> {{ $t('accept-invite') }}</ui-button>
<ui-button @click="rejectInvite(invite)"><fa :icon="faBan"/> {{ $t('reject-invite') }}</ui-button>
@ -41,11 +44,15 @@
<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
import { faUsers, faPlus, faCheck, faBan, faEnvelopeOpenText } from '@fortawesome/free-solid-svg-icons';
import i18n from '../../../i18n';
import XAvatars from '../../views/components/avatars.vue';
export default Vue.extend({
i18n: i18n('common/views/components/user-groups.vue'),
components: {
XAvatars
},
data() {
return {
ownedGroups: [],

View File

@ -8,6 +8,7 @@
<ui-hr/>
<ui-margin>
<router-link :to="`/i/lists/${list.id}`">{{ list.name }}</router-link>
<x-avatars :user-ids="list.userIds" style="margin-top:8px;"/>
</ui-margin>
</div>
</ui-container>
@ -17,9 +18,13 @@
import Vue from 'vue';
import i18n from '../../../i18n';
import { faListUl, faPlus } from '@fortawesome/free-solid-svg-icons';
import XAvatars from '../../views/components/avatars.vue';
export default Vue.extend({
i18n: i18n('common/views/components/user-lists.vue'),
components: {
XAvatars
},
data() {
return {
fetching: true,