diff --git a/packages/frontend/src/pages/settings/account-data.vue b/packages/frontend/src/pages/settings/account-data.vue index 84c5400603..ee5d732f90 100644 --- a/packages/frontend/src/pages/settings/account-data.vue +++ b/packages/frontend/src/pages/settings/account-data.vue @@ -168,6 +168,19 @@ SPDX-License-Identifier: AGPL-3.0-only + + + + + {{ i18n.ts._dataRequest.title }} + + + {{ i18n.ts._dataRequest.warn }} + {{ i18n.ts._dataRequest.text }} + {{ i18n.ts._dataRequest.button }} + + + @@ -179,6 +192,7 @@ import MkButton from '@/components/MkButton.vue'; import MkFolder from '@/components/MkFolder.vue'; import MkSwitch from '@/components/MkSwitch.vue'; import MkRadios from '@/components/MkRadios.vue'; +import FormInfo from '@/components/MkInfo.vue'; import * as os from '@/os.js'; import { misskeyApi } from '@/utility/misskey-api.js'; import { selectFile } from '@/utility/select-file.js'; @@ -250,6 +264,10 @@ const exportAntennas = () => { misskeyApi('i/export-antennas', {}).then(onExportSuccess).catch(onError); }; +const exportData = () => { + misskeyApi('i/export-data', {}).then(onExportSuccess).catch(onError); +}; + const importFollowing = async (ev) => { const file = await selectFile(ev.currentTarget ?? ev.target); misskeyApi('i/import-following', { diff --git a/packages/frontend/src/pages/settings/other.vue b/packages/frontend/src/pages/settings/other.vue index 4c3e294bbb..f82d88144a 100644 --- a/packages/frontend/src/pages/settings/other.vue +++ b/packages/frontend/src/pages/settings/other.vue @@ -67,19 +67,6 @@ SPDX-License-Identifier: AGPL-3.0-only - - - - {{ i18n.ts._dataRequest.title }} - - - {{ i18n.ts._dataRequest.warn }} - {{ i18n.ts._dataRequest.text }} - {{ i18n.ts._dataRequest.button }} - - - - @@ -211,20 +198,6 @@ function migrate() { migrateOldSettings(); } -const exportData = () => { - misskeyApi('i/export-data', {}).then(() => { - os.alert({ - type: 'info', - text: i18n.ts.exportRequested, - }); - }).catch((ev) => { - os.alert({ - type: 'error', - text: ev.message, - }); - }); -}; - const headerActions = computed(() => []); const headerTabs = computed(() => []);