diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 20:56:48 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 20:56:48 +0900 |
| commit | 27d16c6a120d05e69eb069035a851c48c44548c5 (patch) | |
| tree | 678e3a68df78837652047f8f4da4306e22377cd6 /src/client/app/common | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-27d16c6a120d05e69eb069035a851c48c44548c5.tar.gz misskey-27d16c6a120d05e69eb069035a851c48c44548c5.tar.bz2 misskey-27d16c6a120d05e69eb069035a851c48c44548c5.zip | |
Resolve #4151
Diffstat (limited to 'src/client/app/common')
| -rw-r--r-- | src/client/app/common/views/components/profile-editor.vue | 19 |
1 files changed, 16 insertions, 3 deletions
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 @@ <header>{{ $t('export') }}</header> <div> - <ui-button @click="exportNotes()"><fa :icon="faDownload"/> {{ $t('export-notes') }}</ui-button> + <ui-select v-model="exportTarget"> + <span slot="label">{{ $t('export-target') }}</span> + <option value="notes">{{ $t('export-targets.all-notes') }}</option> + <option value="following">{{ $t('export-targets.following-list') }}</option> + <option value="mute">{{ $t('export-targets.mute-list') }}</option> + <option value="blocking">{{ $t('export-targets.blocking-list') }}</option> + </ui-select> + <ui-button @click="doExport()"><fa :icon="faDownload"/> {{ $t('export') }}</ui-button> </div> </section> </ui-card> @@ -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', |