From 5db5bbd1cd25f83640d4dd01de14e7774d9370db Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 5 Feb 2019 19:50:14 +0900 Subject: 自分の投稿情報をエクスポートできるように (#4144) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * 正しいJSONを生成するように * データを整形 --- .../app/common/views/components/profile-editor.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/client') diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index feffd25437..d745e7d291 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -87,6 +87,14 @@ {{ $t('save') }} + +
+
{{ $t('export') }}
+ +
+ {{ $t('export-notes') }} +
+
@@ -252,6 +260,15 @@ export default Vue.extend({ email: this.email == '' ? null : this.email }); }); + }, + + exportNotes() { + this.$root.api('i/export-notes', {}); + + this.$root.dialog({ + type: 'info', + text: this.$t('export-requested') + }); } } }); -- cgit v1.2.3-freya