summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-08 15:17:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-08 15:17:35 +0900
commit4d6c8efe44e81ff704d0e6c4dda7c2cc84535a6f (patch)
treebd83f678563b47893a4963cc630d9e101d90f33f /src
parentwip (diff)
downloadmisskey-4d6c8efe44e81ff704d0e6c4dda7c2cc84535a6f.tar.gz
misskey-4d6c8efe44e81ff704d0e6c4dda7c2cc84535a6f.tar.bz2
misskey-4d6c8efe44e81ff704d0e6c4dda7c2cc84535a6f.zip
wip
Diffstat (limited to 'src')
-rw-r--r--src/client/pages/my-groups/group.vue20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/client/pages/my-groups/group.vue b/src/client/pages/my-groups/group.vue
index 67f5f9754f..c8170a2a57 100644
--- a/src/client/pages/my-groups/group.vue
+++ b/src/client/pages/my-groups/group.vue
@@ -7,6 +7,7 @@
<div v-if="group" class="_card">
<div class="_content">
<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>
</div>
</div>
@@ -135,6 +136,25 @@ export default Vue.extend({
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() {
const { canceled } = await this.$root.dialog({
type: 'warning',