diff --git a/src/consts/api.ts b/src/consts/api.ts index 03259d34..e84b2c9c 100644 --- a/src/consts/api.ts +++ b/src/consts/api.ts @@ -29,8 +29,74 @@ export interface SpecifiedApiError { } export const SPECIFIED_API_NOT_FOUND_ERRORS: Record = { + '/api/authorize.json': { + message: 'Username/password login is disabled' + }, '/api/register.json': { message: 'User registration is disabled' + }, + '/api/2fa/authorize.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/2fa/recovery.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/verify_email/resend.json': { + message: 'Email verification is disabled' + }, + '/api/verify_email/by_token.json': { + message: 'Email verification is disabled' + }, + '/api/forget_password/request.json': { + message: 'Forget password is disabled' + }, + '/api/forget_password/reset/by_token.json': { + message: 'Forget password is disabled' + }, + '/api/v1/users/verify_email/resend.json': { + message: 'Email verification is disabled' + }, + '/api/v1/users/external_auth/list.json': { + message: 'External login is disabled' + }, + '/api/v1/users/external_auth/unlink.json': { + message: 'External login is disabled' + }, + '/api/v1/users/2fa/status.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/v1/users/2fa/enable/request.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/v1/users/2fa/enable/confirm.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/v1/users/2fa/disable.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/v1/users/2fa/recovery/regenerate.json': { + message: 'Two-factor authentication is disabled' + }, + '/api/v1/transactions/parse_dsv_file.json': { + message: 'Transaction importing is disabled' + }, + '/api/v1/transactions/parse_import.json': { + message: 'Transaction importing is disabled' + }, + '/api/v1/transactions/import.json': { + message: 'Transaction importing is disabled' + }, + '/api/v1/transactions/import/process.json': { + message: 'Transaction importing is disabled' + }, + '/api/v1/transaction/pictures/upload.json': { + message: 'Transaction picture is disabled' + }, + '/api/v1/transaction/pictures/remove_unused.json': { + message: 'Transaction picture is disabled' + }, + '/api/v1/llm/transactions/recognize_receipt_image.json': { + message: 'AI image recognition is disabled' } }; diff --git a/src/locales/de.json b/src/locales/de.json index 2418996f..df31b2bc 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Spitzname darf nicht leer sein", "Default currency cannot be blank": "Standardwährung darf nicht leer sein", "Unable to log in": "Anmeldung nicht möglich", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Zwei-Faktor-Authentifizierung", "Two-factor authentication is not enabled yet.": "Zwei-Faktor-Authentifizierung ist noch nicht aktiviert.", "Two-factor authentication is already enabled.": "Zwei-Faktor-Authentifizierung ist bereits aktiviert.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Ungültige Transaktionen können nicht importiert werden", "Unable to parse import file": "Importdatei kann nicht geparst werden", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Sind Sie sicher, dass Sie dieses Transaktionsbild entfernen möchten?", "Unable to upload transaction picture": "Transaktionsbild kann nicht hochgeladen werden", "Unable to remove transaction picture": "Transaktionsbild kann nicht entfernt werden", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Transaktionsbeschreibung suchen", "Unable to retrieve transaction list": "Transaktionsliste kann nicht abgerufen werden", diff --git a/src/locales/en.json b/src/locales/en.json index 93883920..4186c732 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1050,7 +1050,7 @@ }, "error": { "system error": "System Error", - "api not found": "Failed to request api", + "api not found": "Failed to request API", "not implemented": "Not implemented", "system is busy": "System is busy", "not supported": "Not supported", @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Nickname cannot be blank", "Default currency cannot be blank": "Default currency cannot be blank", "Unable to log in": "Unable to log in", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Two-Factor Authentication", "Two-factor authentication is not enabled yet.": "Two-factor authentication is not enabled yet.", "Two-factor authentication is already enabled.": "Two-factor authentication is already enabled.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Cannot import invalid transactions", "Unable to parse import file": "Unable to parse import file", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Are you sure you want to remove this transaction picture?", "Unable to upload transaction picture": "Unable to upload transaction picture", "Unable to remove transaction picture": "Unable to remove transaction picture", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Search transaction description", "Unable to retrieve transaction list": "Unable to retrieve transaction list", diff --git a/src/locales/es.json b/src/locales/es.json index 125154ed..36ec36bf 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "El apodo no puede estar en blanco", "Default currency cannot be blank": "La moneda predeterminada no puede estar en blanco", "Unable to log in": "No se puede iniciar sesión", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Autenticación de Dos Factores", "Two-factor authentication is not enabled yet.": "La autenticación de dos factores aún no está activada.", "Two-factor authentication is already enabled.": "La autenticación de dos factores ya está activada.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "No se pueden importar transacciones no válidas", "Unable to parse import file": "No se puede analizar el archivo de importación", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Cargar Archivo de Mapeo de Datos", "Save Data Mapping File": "Guardar Archivo de Mapeo de Datos", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "¿Seguro que deseas eliminar la imagen de esta transacción?", "Unable to upload transaction picture": "No se puede cargar la imagen de la transacción", "Unable to remove transaction picture": "No se puede eliminar la imagen de la transacción", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Buscar descripción de la transacción", "Unable to retrieve transaction list": "No se puede recuperar la lista de transacciones", diff --git a/src/locales/fr.json b/src/locales/fr.json index 79d5a88e..cd9b1e75 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Le surnom ne peut pas être vide", "Default currency cannot be blank": "La devise par défaut ne peut pas être vide", "Unable to log in": "Impossible de se connecter", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Authentification à deux facteurs", "Two-factor authentication is not enabled yet.": "L'authentification à deux facteurs n'est pas encore activée.", "Two-factor authentication is already enabled.": "L'authentification à deux facteurs est déjà activée.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "Reconnaissance d'image IA", "Unable to load image": "Impossible de charger l'image", "Unable to recognize image": "Impossible de reconnaître l'image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Relâchez pour charger l'image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Impossible d'importer des transactions invalides", "Unable to parse import file": "Impossible d'analyser le fichier d'importation", "Unable to import transactions": "Impossible d'importer les transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Charger le fichier de mappage de données", "Save Data Mapping File": "Enregistrer le fichier de mappage de données", "Data mapping file is invalid": "Le fichier de mappage de données est invalide", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Êtes-vous sûr de vouloir supprimer cette image de transaction ?", "Unable to upload transaction picture": "Impossible de télécharger l'image de transaction", "Unable to remove transaction picture": "Impossible de supprimer l'image de transaction", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Échec du chargement de l'image, veuillez vérifier si les configurations \"domain\" et \"root_url\" sont correctement définies.", "Search transaction description": "Rechercher la description de transaction", "Unable to retrieve transaction list": "Impossible de récupérer la liste des transactions", diff --git a/src/locales/it.json b/src/locales/it.json index eb0068e8..caadd0f4 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Il nickname non può essere vuoto", "Default currency cannot be blank": "La valuta predefinita non può essere vuota", "Unable to log in": "Impossibile accedere", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Autenticazione a due fattori", "Two-factor authentication is not enabled yet.": "L'autenticazione a due fattori non è ancora abilitata.", "Two-factor authentication is already enabled.": "L'autenticazione a due fattori è già abilitata.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Impossibile importare transazioni non valide", "Unable to parse import file": "Impossibile analizzare il file di importazione", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Sei sicuro di voler rimuovere questa immagine della transazione?", "Unable to upload transaction picture": "Impossibile caricare l'immagine della transazione", "Unable to remove transaction picture": "Impossibile rimuovere l'immagine della transazione", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Cerca descrizione transazione", "Unable to retrieve transaction list": "Impossibile recuperare l'elenco delle transazioni", diff --git a/src/locales/ja.json b/src/locales/ja.json index 9da97dc1..ff369751 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "ニックネームは空欄にできません", "Default currency cannot be blank": "デフォルト通貨は空欄にできません", "Unable to log in": "ログインできません", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "二要素認証", "Two-factor authentication is not enabled yet.": "二要素認証はまだ有効になっていません。", "Two-factor authentication is already enabled.": "二要素認証はすでに有効です。", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "無効な取引をインポートできません", "Unable to parse import file": "インポートファイルを解析できません", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "この取引画像を削除しますか?", "Unable to upload transaction picture": "取引画像をアップロードできません", "Unable to remove transaction picture": "取引画像を削除できません", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "取引の説明を検索", "Unable to retrieve transaction list": "取引リストを取得できません", diff --git a/src/locales/kn.json b/src/locales/kn.json index 94cea762..3581f086 100644 --- a/src/locales/kn.json +++ b/src/locales/kn.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "ಉಪನಾಮ ಖಾಲಿಯಾಗಿರಬಾರದು", "Default currency cannot be blank": "ಡೀಫಾಲ್ಟ್ ಕರೆನ್ಸಿ ಖಾಲಿಯಾಗಿರಬಾರದು", "Unable to log in": "ಲಾಗಿನ್ ಮಾಡಲು ಸಾಧ್ಯವಾಗುತ್ತಿಲ್ಲ", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "ಎರಡು ಹಂತದ ದೃಢೀಕರಣ", "Two-factor authentication is not enabled yet.": "ಎರಡು ಹಂತದ ದೃಢೀಕರಣ ಇನ್ನೂ ಸಕ್ರಿಯಗೊಳಿಸಲ್ಪಟ್ಟಿಲ್ಲ.", "Two-factor authentication is already enabled.": "ಎರಡು ಹಂತದ ದೃಢೀಕರಣ ಈಗಾಗಲೇ ಸಕ್ರಿಯವಾಗಿದೆ.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI ಚಿತ್ರ ಗುರುತಿಸುವಿಕೆ", "Unable to load image": "ಚಿತ್ರ ಲೋಡ್ ಮಾಡಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ", "Unable to recognize image": "ಚಿತ್ರವನ್ನು ಗುರುತಿಸಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "ರಸೀದಿ ಅಥವಾ ವಹಿವಾಟಿನ ಚಿತ್ರವನ್ನು ಆಯ್ಕೆ ಮಾಡಲು ಎಳೆದು ಬಿಡಬಹುದು, ಅಂಟಿಸಬಹುದು ಅಥವಾ ಕ್ಲಿಕ್ ಮಾಡಬಹುದು", "Release to load image": "ಚಿತ್ರ ಲೋಡ್ ಮಾಡಲು ಬಿಡಿ", "Loading image...": "ಚಿತ್ರ ಲೋಡ್ ಆಗುತ್ತಿದೆ...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "ಅಮಾನ್ಯ ವಹಿವಾಟುಗಳನ್ನು ಆಮದು ಮಾಡಲು ಸಾಧ್ಯವಿಲ್ಲ", "Unable to parse import file": "ಆಮದು ಫೈಲ್ ಅನ್ನು ಪಾರ್ಸ್ ಮಾಡಲು ಸಾಧ್ಯವಿಲ್ಲ", "Unable to import transactions": "ವಹಿವಾಟುಗಳನ್ನು ಆಮದು ಮಾಡಲು ಸಾಧ್ಯವಿಲ್ಲ", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "ಡೇಟಾ ಮ್ಯಾಪಿಂಗ್ ಫೈಲ್ ಲೋಡ್ ಮಾಡಿ", "Save Data Mapping File": "ಡೇಟಾ ಮ್ಯಾಪಿಂಗ್ ಫೈಲ್ ಉಳಿಸಿ", "Data mapping file is invalid": "ಡೇಟಾ ಮ್ಯಾಪಿಂಗ್ ಫೈಲ್ ಅಮಾನ್ಯವಾಗಿದೆ", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "ಈ ವಹಿವಾಟಿನ ಚಿತ್ರವನ್ನು ತೆಗೆದುಹಾಕಲು ನೀವು ಖಚಿತವೇ?", "Unable to upload transaction picture": "ವಹಿವಾಟಿನ ಚಿತ್ರವನ್ನು ಅಪ್ಲೋಡ್ ಮಾಡಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ", "Unable to remove transaction picture": "ವಹಿವಾಟಿನ ಚಿತ್ರವನ್ನು ತೆಗೆದುಹಾಕಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "ಚಿತ್ರ ಲೋಡ್ ಮಾಡಲು ವಿಫಲವಾಗಿದೆ, ದಯವಿಟ್ಟು \"domain\" ಮತ್ತು \"root_url\" ಸಂರಚನೆ ಸರಿಯಾಗಿದೆಯೇ ಎಂದು ಪರಿಶೀಲಿಸಿ.", "Search transaction description": "ವಹಿವಾಟು ವಿವರಣೆ ಹುಡುಕಿ", "Unable to retrieve transaction list": "ವಹಿವಾಟು ಪಟ್ಟಿ ಪಡೆಯಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ", diff --git a/src/locales/ko.json b/src/locales/ko.json index 0dbe01f8..df67ffa9 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "닉네임은 비워둘 수 없습니다.", "Default currency cannot be blank": "기본 통화는 비워둘 수 없습니다.", "Unable to log in": "로그인할 수 없습니다.", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "이중 인증", "Two-factor authentication is not enabled yet.": "이중 인증이 아직 활성화되지 않았습니다.", "Two-factor authentication is already enabled.": "이중 인증이 이미 활성화되어 있습니다.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI 이미지 인식", "Unable to load image": "이미지를 로드할 수 없습니다.", "Unable to recognize image": "이미지를 인식할 수 없습니다.", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "영수증 또는 거래 이미지를 선택하려면 드래그 앤 드롭하거나 붙여넣기 또는 클릭하세요.", "Release to load image": "이미지를 로드하려면 놓으세요.", "Loading image...": "이미지를 로드하는 중...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "유효하지 않은 거래를 가져올 수 없습니다", "Unable to parse import file": "가져오기 파일을 구문 분석할 수 없습니다", "Unable to import transactions": "거래를 가져올 수 없습니다", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "데이터 매핑 파일 로드", "Save Data Mapping File": "데이터 매핑 파일 저장", "Data mapping file is invalid": "데이터 매핑 파일이 유효하지 않습니다", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "이 거래 사진을 제거하시겠습니까?", "Unable to upload transaction picture": "거래 사진을 업로드할 수 없습니다", "Unable to remove transaction picture": "거래 사진을 제거할 수 없습니다", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "이미지를 로드하지 못했습니다. \"domain\" 및 \"root_url\" 구성이 올바르게 설정되었는지 확인하십시오.", "Search transaction description": "거래 설명 검색", "Unable to retrieve transaction list": "거래 목록을 검색할 수 없습니다", diff --git a/src/locales/nl.json b/src/locales/nl.json index b545b31c..bf9f7445 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Bijnaam mag niet leeg zijn", "Default currency cannot be blank": "Standaardvaluta mag niet leeg zijn", "Unable to log in": "Kan niet inloggen", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Tweestapsverificatie", "Two-factor authentication is not enabled yet.": "Tweestapsverificatie is nog niet ingeschakeld.", "Two-factor authentication is already enabled.": "Tweestapsverificatie is al ingeschakeld.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Ongeldige transacties kunnen niet worden geïmporteerd", "Unable to parse import file": "Kan importbestand niet parseren", "Unable to import transactions": "Kan transacties niet importeren", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Datatoewijzingsbestand laden", "Save Data Mapping File": "Datatoewijzingsbestand opslaan", "Data mapping file is invalid": "Datatoewijzingsbestand is ongeldig", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Weet je zeker dat je deze transactie-afbeelding wilt verwijderen?", "Unable to upload transaction picture": "Kan transactie-afbeelding niet uploaden", "Unable to remove transaction picture": "Kan transactie-afbeelding niet verwijderen", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Afbeelding laden mislukt; controleer of de configuratie-waarden \"domain\" en \"root_url\" correct zijn ingesteld.", "Search transaction description": "Transactiebeschrijving zoeken", "Unable to retrieve transaction list": "Kan transactielijst niet ophalen", diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json index 7118aea2..e510ffde 100644 --- a/src/locales/pt_BR.json +++ b/src/locales/pt_BR.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "O apelido não pode estar em branco", "Default currency cannot be blank": "A moeda padrão não pode estar em branco", "Unable to log in": "Não foi possível fazer login", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Autenticação de Dois Fatores", "Two-factor authentication is not enabled yet.": "A autenticação de dois fatores ainda não está habilitada.", "Two-factor authentication is already enabled.": "A autenticação de dois fatores já está habilitada.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Não é possível importar transações inválidas", "Unable to parse import file": "Não foi possível analisar o arquivo de importação", "Unable to import transactions": "Não foi possível importar transações", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Tem certeza de que deseja remover a imagem desta transação?", "Unable to upload transaction picture": "Incapaz de carregar a imagem da transação", "Unable to remove transaction picture": "Incapaz de remover a imagem da transação", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Falha ao carregar a imagem, por favor verifique se as configurações \"domain\" e \"root_url\" estão configuradas corretamente.", "Search transaction description": "Pesquisar descrição da transação", "Unable to retrieve transaction list": "Incapaz de recuperar a lista de transações", diff --git a/src/locales/ru.json b/src/locales/ru.json index e670f70c..1c85ea88 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Никнейм не может быть пустым", "Default currency cannot be blank": "Валюта по умолчанию не может быть пустой", "Unable to log in": "Не удается войти", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Двухфакторная аутентификация", "Two-factor authentication is not enabled yet.": "Двухфакторная аутентификация еще не включена.", "Two-factor authentication is already enabled.": "Двухфакторная аутентификация уже включена.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Невозможно импортировать недействительные транзакции", "Unable to parse import file": "Не удалось обработать файл импорта", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Вы уверены, что хотите удалить это изображение транзакции?", "Unable to upload transaction picture": "Не удалось загрузить изображение транзакции", "Unable to remove transaction picture": "Не удалось удалить изображение транзакции", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Поиск описания транзакции", "Unable to retrieve transaction list": "Не удалось получить список транзакций", diff --git a/src/locales/th.json b/src/locales/th.json index 21a84212..82a8748b 100644 --- a/src/locales/th.json +++ b/src/locales/th.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "ชื่อเล่นต้องไม่ว่าง", "Default currency cannot be blank": "สกุลเงินเริ่มต้นต้องไม่ว่าง", "Unable to log in": "ไม่สามารถเข้าสู่ระบบได้", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "การตรวจสอบสองขั้นตอน", "Two-factor authentication is not enabled yet.": "ยังไม่ได้เปิดใช้งานการตรวจสอบสองขั้นตอน", "Two-factor authentication is already enabled.": "เปิดใช้งานการตรวจสอบสองขั้นตอนแล้ว", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "การจดจำภาพด้วย AI", "Unable to load image": "ไม่สามารถโหลดรูปภาพได้", "Unable to recognize image": "ไม่สามารถจดจำรูปภาพได้", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "ปล่อยเพื่อโหลดรูปภาพ", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "ไม่สามารถนำเข้ารายการที่ไม่ถูกต้อง", "Unable to parse import file": "ไม่สามารถแยกไฟล์นำเข้าได้", "Unable to import transactions": "ไม่สามารถนำเข้ารายการได้", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "โหลดไฟล์แมปข้อมูล", "Save Data Mapping File": "บันทึกไฟล์แมปข้อมูล", "Data mapping file is invalid": "ไฟล์แมปข้อมูลไม่ถูกต้อง", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "คุณแน่ใจหรือว่าต้องการลบรูปภาพรายการนี้?", "Unable to upload transaction picture": "ไม่สามารถอัปโหลดรูปภาพรายการได้", "Unable to remove transaction picture": "ไม่สามารถลบรูปภาพรายการได้", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "โหลดรูปภาพล้มเหลว กรุณาตรวจสอบการตั้งค่า \"domain\" และ \"root_url\"", "Search transaction description": "ค้นหาคำอธิบายรายการ", "Unable to retrieve transaction list": "ไม่สามารถดึงรายการได้", diff --git a/src/locales/tr.json b/src/locales/tr.json index 65a1811c..bd89d904 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Takma ad boş olamaz", "Default currency cannot be blank": "Varsayılan para birimi boş olamaz", "Unable to log in": "Giriş yapılamadı", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "İki Faktörlü Kimlik Doğrulama", "Two-factor authentication is not enabled yet.": "İki faktörlü kimlik doğrulama henüz etkinleştirilmedi.", "Two-factor authentication is already enabled.": "İki faktörlü kimlik doğrulama zaten etkin.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "Yapay Zeka Görüntü Tanıma", "Unable to load image": "Görüntü yüklenemedi", "Unable to recognize image": "Görüntü tanınamadı", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "Fiş veya işlem görüntüsünü sürükleyip bırakabilir, yapıştırabilir veya seçmek için tıklayabilirsiniz", "Release to load image": "Görüntüyü yüklemek için bırakın", "Loading image...": "Görüntü yükleniyor...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Geçersiz işlemler içe aktarılamaz", "Unable to parse import file": "İçe aktarım dosyası ayrıştırılamadı", "Unable to import transactions": "İşlemler içe aktarılamadı", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Veri Eşleme Dosyası Yükle", "Save Data Mapping File": "Veri Eşleme Dosyası Kaydet", "Data mapping file is invalid": "Veri eşleme dosyası geçersiz", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Bu işlem resmini kaldırmak istediğinize emin misiniz?", "Unable to upload transaction picture": "İşlem resmi yüklenemedi", "Unable to remove transaction picture": "İşlem resmi kaldırılamadı", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Görüntü yüklenemedi, lütfen \"domain\" ve \"root_url\" ayarlarının doğru yapılandırıldığını kontrol edin.", "Search transaction description": "İşlem açıklamasını ara", "Unable to retrieve transaction list": "İşlem listesi alınamadı", diff --git a/src/locales/uk.json b/src/locales/uk.json index b7358896..42d70fc3 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Псевдонім не може бути порожнім", "Default currency cannot be blank": "Валюта за замовчуванням не може бути порожньою", "Unable to log in": "Не вдалося увійти", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Двофакторна автентифікація", "Two-factor authentication is not enabled yet.": "Двофакторна автентифікація ще не увімкнена.", "Two-factor authentication is already enabled.": "Двофакторна автентифікація вже увімкнена.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Неможливо імпортувати недійсні транзакції", "Unable to parse import file": "Не вдалося обробити файл імпорту", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Ви впевнені, що хочете видалити це зображення транзакції?", "Unable to upload transaction picture": "Не вдалося завантажити зображення транзакції", "Unable to remove transaction picture": "Не вдалося видалити зображення транзакції", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Пошук за описом транзакції", "Unable to retrieve transaction list": "Не вдалося отримати список транзакцій", diff --git a/src/locales/vi.json b/src/locales/vi.json index c58d0c6c..ab65c11d 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "Biệt danh không được để trống", "Default currency cannot be blank": "Tiền tệ mặc định không được để trống", "Unable to log in": "Không thể đăng nhập", + "Username/password login is disabled": "Username/password login is disabled", + "External login is disabled": "External login is disabled", + "Two-factor authentication is disabled": "Two-factor authentication is disabled", + "Email verification is disabled": "Email verification is disabled", + "Forget password is disabled": "Forget password is disabled", "Two-Factor Authentication": "Xác thực hai yếu tố", "Two-factor authentication is not enabled yet.": "Xác thực hai yếu tố chưa được bật.", "Two-factor authentication is already enabled.": "Xác thực hai yếu tố đã được bật.", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI Image Recognition", "Unable to load image": "Unable to load image", "Unable to recognize image": "Unable to recognize image", + "AI image recognition is disabled": "AI image recognition is disabled", "You can drag and drop, paste or click to select a receipt or transaction image": "You can drag and drop, paste or click to select a receipt or transaction image", "Release to load image": "Release to load image", "Loading image...": "Loading image...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "Không thể nhập giao dịch không hợp lệ", "Unable to parse import file": "Không thể phân tích tệp nhập", "Unable to import transactions": "Unable to import transactions", + "Transaction importing is disabled": "Transaction importing is disabled", "Load Data Mapping File": "Load Data Mapping File", "Save Data Mapping File": "Save Data Mapping File", "Data mapping file is invalid": "Data mapping file is invalid", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "Bạn có chắc chắn muốn xóa ảnh giao dịch này không?", "Unable to upload transaction picture": "Không thể tải lên ảnh giao dịch", "Unable to remove transaction picture": "Không thể xóa ảnh giao dịch", + "Transaction picture is disabled": "Transaction picture is disabled", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.", "Search transaction description": "Tìm kiếm mô tả giao dịch", "Unable to retrieve transaction list": "Không thể lấy danh sách giao dịch", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index de37559c..034637c2 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "昵称不能为空", "Default currency cannot be blank": "默认货币不能为空", "Unable to log in": "无法登录", + "Username/password login is disabled": "用户名/密码登录已禁用", + "External login is disabled": "外部登录已禁用", + "Two-factor authentication is disabled": "两步验证已禁用", + "Email verification is disabled": "电子邮箱验证已禁用", + "Forget password is disabled": "忘记密码已禁用", "Two-Factor Authentication": "两步验证", "Two-factor authentication is not enabled yet.": "两步验证没有启用。", "Two-factor authentication is already enabled.": "两步验证已经启用。", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI识图", "Unable to load image": "无法加载图片", "Unable to recognize image": "无法识别图片", + "AI image recognition is disabled": "AI识图已禁用", "You can drag and drop, paste or click to select a receipt or transaction image": "您可以拖拽、粘贴或点击选择收据或交易图片", "Release to load image": "释放以加载图片", "Loading image...": "正在加载图片...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "不能导入无效的交易", "Unable to parse import file": "无法解析导入的文件", "Unable to import transactions": "无法导入交易", + "Transaction importing is disabled": "导入交易已禁用", "Load Data Mapping File": "加载数据映射文件", "Save Data Mapping File": "保存数据映射文件", "Data mapping file is invalid": "数据映射文件无效", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "您确定要删除这张交易图片?", "Unable to upload transaction picture": "无法上传交易图片", "Unable to remove transaction picture": "无法删除交易图片", + "Transaction picture is disabled": "交易图片已禁用", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "无法加载图片,请检查配置 \"domain\" 和 \"root_url\" 是否设置正确。", "Search transaction description": "搜索交易描述", "Unable to retrieve transaction list": "无法获取交易列表", diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json index 211403b7..f0935686 100644 --- a/src/locales/zh_Hant.json +++ b/src/locales/zh_Hant.json @@ -1637,6 +1637,11 @@ "Nickname cannot be blank": "暱稱不能為空", "Default currency cannot be blank": "預設貨幣不能為空", "Unable to log in": "無法登入", + "Username/password login is disabled": "使用者名稱/密碼登入已停用", + "External login is disabled": "外部登入已停用", + "Two-factor authentication is disabled": "兩步驟驗證已停用", + "Email verification is disabled": "電子郵件驗證已停用", + "Forget password is disabled": "忘記密碼已停用", "Two-Factor Authentication": "兩步驟驗證", "Two-factor authentication is not enabled yet.": "兩步驟驗證尚未啟用。", "Two-factor authentication is already enabled.": "兩步驟驗證已經啟用。", @@ -1798,6 +1803,7 @@ "AI Image Recognition": "AI識圖", "Unable to load image": "無法載入圖片", "Unable to recognize image": "無法識別圖片", + "AI image recognition is disabled": "AI識圖已停用", "You can drag and drop, paste or click to select a receipt or transaction image": "您可以拖放、貼上或點擊選擇收據或交易圖片", "Release to load image": "放開以載入圖片", "Loading image...": "正在載入圖片...", @@ -1916,6 +1922,7 @@ "Cannot import invalid transactions": "無法匯入無效的交易", "Unable to parse import file": "無法解析匯入的檔案", "Unable to import transactions": "無法匯入交易", + "Transaction importing is disabled": "匯入交易已停用", "Load Data Mapping File": "載入資料對應檔案", "Save Data Mapping File": "儲存資料對應檔案", "Data mapping file is invalid": "資料對應檔案無效", @@ -1990,6 +1997,7 @@ "Are you sure you want to remove this transaction picture?": "您確定要移除這張交易圖片?", "Unable to upload transaction picture": "無法上傳交易圖片", "Unable to remove transaction picture": "無法移除交易圖片", + "Transaction picture is disabled": "交易圖片已停用", "Failed to load image, please check whether the config \"domain\" and \"root_url\" are set correctly.": "無法載入圖片,請檢查設定 \"domain\" 和 \"root_url\" 是否設定正確。", "Search transaction description": "搜尋交易描述", "Unable to retrieve transaction list": "無法取得交易清單", diff --git a/src/views/desktop/user/settings/tabs/UserSecuritySettingTab.vue b/src/views/desktop/user/settings/tabs/UserSecuritySettingTab.vue index 363548f2..cece8dfe 100644 --- a/src/views/desktop/user/settings/tabs/UserSecuritySettingTab.vue +++ b/src/views/desktop/user/settings/tabs/UserSecuritySettingTab.vue @@ -212,6 +212,8 @@ import { useUserExternalAuthStore } from '@/stores/userExternalAuth.ts'; import { useTokensStore } from '@/stores/token.ts'; import { itemAndIndex, reversedItemAndIndex } from '@/core/base.ts'; +import { KnownErrorCode } from '@/consts/api.ts'; + import { type UserExternalAuthInfoResponse } from '@/models/user_external_auth.ts'; import { type TokenInfoResponse, SessionDeviceType, SessionInfo } from '@/models/token.ts'; @@ -440,7 +442,10 @@ function reloadExternalAuth(silent?: boolean): void { }).catch(error => { loadingExternalAuth.value = false; - if (!error.processed) { + if (error.error && error.error.errorCode === KnownErrorCode.ApiNotFound) { + externalAuths.value = []; + } else if (!error.processed) { + externalAuths.value = []; snackbar.value?.showError(error); } }); diff --git a/src/views/desktop/user/settings/tabs/UserTwoFactorAuthSettingTab.vue b/src/views/desktop/user/settings/tabs/UserTwoFactorAuthSettingTab.vue index 2137047f..48bc0eba 100644 --- a/src/views/desktop/user/settings/tabs/UserTwoFactorAuthSettingTab.vue +++ b/src/views/desktop/user/settings/tabs/UserTwoFactorAuthSettingTab.vue @@ -110,6 +110,7 @@ import { useI18n } from '@/locales/helpers.ts'; import { useTwoFactorAuthStore } from '@/stores/twoFactorAuth.ts'; +import { KnownErrorCode } from '@/consts/api.ts'; import { copyTextToClipboard } from '@/lib/ui/common.ts'; import { @@ -145,7 +146,10 @@ function init(): void { }).catch(error => { loading.value = false; - if (!error.processed) { + if (error.error && error.error.errorCode === KnownErrorCode.ApiNotFound) { + status.value = null; + } else if (!error.processed) { + status.value = null; snackbar.value?.showError(error); } }); diff --git a/src/views/mobile/users/TwoFactorAuthPage.vue b/src/views/mobile/users/TwoFactorAuthPage.vue index 89a8200d..9f45d335 100644 --- a/src/views/mobile/users/TwoFactorAuthPage.vue +++ b/src/views/mobile/users/TwoFactorAuthPage.vue @@ -63,6 +63,7 @@ import type { Router } from 'framework7/types'; import { useI18n } from '@/locales/helpers.ts'; import { useI18nUIComponents, showLoading, hideLoading } from '@/lib/ui/mobile.ts'; +import { KnownErrorCode } from '@/consts/api.ts'; import { useTwoFactorAuthStore } from '@/stores/twoFactorAuth.ts'; const props = defineProps<{ @@ -100,6 +101,10 @@ function init(): void { loading.value = false; }).catch(error => { if (error.processed) { + status.value = null; + loading.value = false; + } else if (error.error && error.error.errorCode === KnownErrorCode.ApiNotFound) { + status.value = null; loading.value = false; } else { loadingError.value = error;