From 27d16c6a120d05e69eb069035a851c48c44548c5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 6 Feb 2019 20:56:48 +0900 Subject: Resolve #4151 --- .../app/common/views/components/profile-editor.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/client/app/common') diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index a3b1c6d870..472124fa84 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -92,7 +92,14 @@
{{ $t('export') }}
- {{ $t('export-notes') }} + + {{ $t('export-target') }} + + + + + + {{ $t('export') }}
@@ -133,6 +140,7 @@ export default Vue.extend({ saving: false, avatarUploading: false, bannerUploading: false, + exportTarget: 'notes', faDownload }; }, @@ -264,8 +272,13 @@ export default Vue.extend({ }); }, - exportNotes() { - this.$root.api('i/export-notes', {}); + doExport() { + this.$root.api( + this.exportTarget == 'notes' ? 'i/export-notes' : + this.exportTarget == 'following' ? 'i/export-following' : + this.exportTarget == 'mute' ? 'i/export-mute' : + this.exportTarget == 'blocking' ? 'i/export-blocking' : + null, {}); this.$root.dialog({ type: 'info', -- cgit v1.3.1-freya