mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 05:23:09 +02:00
wip
This commit is contained in:
parent
860a7d1eeb
commit
4d6c8efe44
2 changed files with 21 additions and 0 deletions
|
@ -368,6 +368,7 @@ invite: "招待"
|
||||||
invites: "招待"
|
invites: "招待"
|
||||||
groupName: "グループ名"
|
groupName: "グループ名"
|
||||||
members: "メンバー"
|
members: "メンバー"
|
||||||
|
transfer: "譲渡"
|
||||||
|
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "既に設定は完了しています。"
|
alreadyRegistered: "既に設定は完了しています。"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<div v-if="group" class="_card">
|
<div v-if="group" class="_card">
|
||||||
<div class="_content">
|
<div class="_content">
|
||||||
<mk-button inline @click="renameGroup()">{{ $t('rename') }}</mk-button>
|
<mk-button inline @click="renameGroup()">{{ $t('rename') }}</mk-button>
|
||||||
|
<mk-button inline @click="transfer()">{{ $t('transfer') }}</mk-button>
|
||||||
<mk-button inline @click="deleteGroup()">{{ $t('delete') }}</mk-button>
|
<mk-button inline @click="deleteGroup()">{{ $t('delete') }}</mk-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -135,6 +136,25 @@ export default Vue.extend({
|
||||||
this.group.name = name;
|
this.group.name = name;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
transfer() {
|
||||||
|
this.$root.new(MkUserSelect, {}).$once('selected', user => {
|
||||||
|
this.$root.api('users/groups/transfer', {
|
||||||
|
groupId: this.group.id,
|
||||||
|
userId: user.id
|
||||||
|
}).then(() => {
|
||||||
|
this.$root.dialog({
|
||||||
|
type: 'success',
|
||||||
|
iconOnly: true, autoClose: true
|
||||||
|
});
|
||||||
|
}).catch(e => {
|
||||||
|
this.$root.dialog({
|
||||||
|
type: 'error',
|
||||||
|
text: e
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
async deleteGroup() {
|
async deleteGroup() {
|
||||||
const { canceled } = await this.$root.dialog({
|
const { canceled } = await this.$root.dialog({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
Loading…
Reference in a new issue