wip
This commit is contained in:
parent
9d81d06853
commit
5a8cc7851b
200 changed files with 1562 additions and 1533 deletions
|
@ -3,17 +3,17 @@
|
|||
<transition name="zoom" mode="out-in">
|
||||
<div v-if="group" class="_section">
|
||||
<div class="_content">
|
||||
<MkButton inline @click="invite()">{{ $t('invite') }}</MkButton>
|
||||
<MkButton inline @click="renameGroup()">{{ $t('rename') }}</MkButton>
|
||||
<MkButton inline @click="transfer()">{{ $t('transfer') }}</MkButton>
|
||||
<MkButton inline @click="deleteGroup()">{{ $t('delete') }}</MkButton>
|
||||
<MkButton inline @click="invite()">{{ $ts.invite }}</MkButton>
|
||||
<MkButton inline @click="renameGroup()">{{ $ts.rename }}</MkButton>
|
||||
<MkButton inline @click="transfer()">{{ $ts.transfer }}</MkButton>
|
||||
<MkButton inline @click="deleteGroup()">{{ $ts.delete }}</MkButton>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<transition name="zoom" mode="out-in">
|
||||
<div v-if="group" class="_section members _vMargin">
|
||||
<div class="_title">{{ $t('members') }}</div>
|
||||
<div class="_title">{{ $ts.members }}</div>
|
||||
<div class="_content">
|
||||
<div class="users">
|
||||
<div class="user _panel" v-for="user in users" :key="user.id">
|
||||
|
@ -101,7 +101,7 @@ export default defineComponent({
|
|||
|
||||
async renameGroup() {
|
||||
const { canceled, result: name } = await os.dialog({
|
||||
title: this.$t('groupName'),
|
||||
title: this.$ts.groupName,
|
||||
input: {
|
||||
default: this.group.name
|
||||
}
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
<div class="">
|
||||
<div class="_section" style="padding: 0;">
|
||||
<MkTab v-model:value="tab">
|
||||
<option value="owned">{{ $t('ownedGroups') }}</option>
|
||||
<option value="joined">{{ $t('joinedGroups') }}</option>
|
||||
<option value="invites"><Fa :icon="faEnvelopeOpenText"/> {{ $t('invites') }}</option>
|
||||
<option value="owned">{{ $ts.ownedGroups }}</option>
|
||||
<option value="joined">{{ $ts.joinedGroups }}</option>
|
||||
<option value="invites"><Fa :icon="faEnvelopeOpenText"/> {{ $ts.invites }}</option>
|
||||
</MkTab>
|
||||
</div>
|
||||
|
||||
<div class="_section">
|
||||
<div class="_content" v-if="tab === 'owned'">
|
||||
<MkButton @click="create" primary style="margin: 0 auto var(--margin) auto;"><Fa :icon="faPlus"/> {{ $t('createGroup') }}</MkButton>
|
||||
<MkButton @click="create" primary style="margin: 0 auto var(--margin) auto;"><Fa :icon="faPlus"/> {{ $ts.createGroup }}</MkButton>
|
||||
|
||||
<MkPagination :pagination="ownedPagination" #default="{items}" ref="owned">
|
||||
<div class="_card" v-for="group in items" :key="group.id">
|
||||
|
@ -35,8 +35,8 @@
|
|||
<div class="_title">{{ invitation.group.name }}</div>
|
||||
<div class="_content"><MkAvatars :user-ids="invitation.group.userIds"/></div>
|
||||
<div class="_footer">
|
||||
<MkButton @click="acceptInvite(invitation)" primary inline><Fa :icon="faCheck"/> {{ $t('accept') }}</MkButton>
|
||||
<MkButton @click="rejectInvite(invitation)" primary inline><Fa :icon="faBan"/> {{ $t('reject') }}</MkButton>
|
||||
<MkButton @click="acceptInvite(invitation)" primary inline><Fa :icon="faCheck"/> {{ $ts.accept }}</MkButton>
|
||||
<MkButton @click="rejectInvite(invitation)" primary inline><Fa :icon="faBan"/> {{ $ts.reject }}</MkButton>
|
||||
</div>
|
||||
</div>
|
||||
</MkPagination>
|
||||
|
@ -67,7 +67,7 @@ export default defineComponent({
|
|||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
title: this.$t('groups'),
|
||||
title: this.$ts.groups,
|
||||
icon: faUsers
|
||||
},
|
||||
tab: 'owned',
|
||||
|
@ -90,7 +90,7 @@ export default defineComponent({
|
|||
methods: {
|
||||
async create() {
|
||||
const { canceled, result: name } = await os.dialog({
|
||||
title: this.$t('groupName'),
|
||||
title: this.$ts.groupName,
|
||||
input: true
|
||||
});
|
||||
if (canceled) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue