diff --git a/locales/en.json b/locales/en.json index a308ce86..a24e29c5 100644 --- a/locales/en.json +++ b/locales/en.json @@ -51,6 +51,7 @@ "boost_count": "{0}", "boosted": "Boosted", "clear_publish_failed": "Clear publish errors", + "clear_save_failed": "Clear save errors", "clear_upload_failed": "Clear file upload errors", "close": "Close", "compose": "Compose", @@ -557,6 +558,7 @@ "loading": "Loading...", "publish_failed": "Publish failed", "publishing": "Publishing", + "save_failed": "Save failed", "upload_failed": "Upload failed", "uploading": "Uploading..." }, diff --git a/locales/ja-JP.json b/locales/ja-JP.json index a424259a..998f9cce 100644 --- a/locales/ja-JP.json +++ b/locales/ja-JP.json @@ -51,6 +51,7 @@ "boost_count": "{0}", "boosted": "ブースト済み", "clear_publish_failed": "投稿エラーをクリア", + "clear_save_failed": "保存エラーをクリア", "clear_upload_failed": "ファイルアップロードエラーをクリア", "close": "閉じる", "compose": "投稿", @@ -499,6 +500,7 @@ "loading": "読込中...", "publish_failed": "投稿に失敗しました", "publishing": "投稿中", + "save_failed": "保存に失敗しました", "upload_failed": "アップロードに失敗しました", "uploading": "更新中..." }, diff --git a/pages/settings/profile/appearance.vue b/pages/settings/profile/appearance.vue index 09a33726..38d08960 100644 --- a/pages/settings/profile/appearance.vue +++ b/pages/settings/profile/appearance.vue @@ -57,6 +57,7 @@ const { form, reset, submitter, isDirty, isError } = useForm({ }) const isCanSubmit = computed(() => !isError.value && isDirty.value) +const failedMessages = $ref([]) const { submit, submitting } = submitter(async ({ dirtyFields }) => { if (!isCanSubmit.value) @@ -67,8 +68,8 @@ const { submit, submitting } = submitter(async ({ dirtyFields }) => { .catch((error: Error) => ({ error })) if ('error' in res) { - // TODO: Show error message - console.error('Error(updateCredentials):', res.error) + console.error(res.error) + failedMessages.push(res.error.message) return } @@ -200,6 +201,7 @@ onReactivated(refreshInfo) + + + + +
+
+ + + + +
+
    +
  1. + {{ i + 1 }}. + {{ error }} +
  2. +
+