add clear all filters in import dialog (#416)

This commit is contained in:
MaysWind
2026-01-04 11:02:09 +08:00
parent 8651755d7a
commit fb25f589fb
20 changed files with 47 additions and 2 deletions
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction", "Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Ungültige Kategorie", "Invalid Category": "Ungültige Kategorie",
"Target Category": "Zielkategorie", "Target Category": "Zielkategorie",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction", "Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Invalid Category", "Invalid Category": "Invalid Category",
"Target Category": "Target Category", "Target Category": "Target Category",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction", "Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Categoría No Válida", "Invalid Category": "Categoría No Válida",
"Target Category": "Categoría de Destino", "Target Category": "Categoría de Destino",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Convertir en lot les transactions de virement en transactions de revenu", "Batch Convert Transfer Transaction to Income Transaction": "Convertir en lot les transactions de virement en transactions de revenu",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Catégorie invalide", "Invalid Category": "Catégorie invalide",
"Target Category": "Catégorie cible", "Target Category": "Catégorie cible",
"Default Expense Category": "Catégorie de dépense par défaut", "Default Expense Category": "Catégorie de dépense par défaut",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Converti in blocco transazione di trasferimento in transazione di entrata", "Batch Convert Transfer Transaction to Income Transaction": "Converti in blocco transazione di trasferimento in transazione di entrata",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Categoria non valida", "Invalid Category": "Categoria non valida",
"Target Category": "Categoria di destinazione", "Target Category": "Categoria di destinazione",
"Default Expense Category": "Categoria di spesa predefinita", "Default Expense Category": "Categoria di spesa predefinita",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "振替取引を収入取引に一括変換", "Batch Convert Transfer Transaction to Income Transaction": "振替取引を収入取引に一括変換",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "無効なカテゴリ", "Invalid Category": "無効なカテゴリ",
"Target Category": "対象カテゴリ", "Target Category": "対象カテゴリ",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "ಹಸ್ತಾಂತರ ವಹಿವಾಟುಗಳನ್ನು ಬ್ಯಾಚ್ ಆದಾಯ ವಹಿವಾಟುಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ", "Batch Convert Transfer Transaction to Income Transaction": "ಹಸ್ತಾಂತರ ವಹಿವಾಟುಗಳನ್ನು ಬ್ಯಾಚ್ ಆದಾಯ ವಹಿವಾಟುಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
"Batch Convert Selected Amounts to Positive Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಧನಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ", "Batch Convert Selected Amounts to Positive Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಧನಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
"Batch Convert Selected Amounts to Negative Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಋಣಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ", "Batch Convert Selected Amounts to Negative Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಋಣಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "ಅಮಾನ್ಯ ವರ್ಗ", "Invalid Category": "ಅಮಾನ್ಯ ವರ್ಗ",
"Target Category": "ಗುರಿ ವರ್ಗ", "Target Category": "ಗುರಿ ವರ್ಗ",
"Default Expense Category": "ಡೀಫಾಲ್ಟ್ ಖರ್ಚು ವರ್ಗ", "Default Expense Category": "ಡೀಫಾಲ್ಟ್ ಖರ್ಚು ವರ್ಗ",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "이체 거래를 수입 거래로 일괄 변환", "Batch Convert Transfer Transaction to Income Transaction": "이체 거래를 수입 거래로 일괄 변환",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "유효하지 않은 카테고리", "Invalid Category": "유효하지 않은 카테고리",
"Target Category": "대상 카테고리", "Target Category": "대상 카테고리",
"Default Expense Category": "기본 비용 카테고리", "Default Expense Category": "기본 비용 카테고리",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Overboekingen batchgewijs omzetten naar inkomsten", "Batch Convert Transfer Transaction to Income Transaction": "Overboekingen batchgewijs omzetten naar inkomsten",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Ongeldige categorie", "Invalid Category": "Ongeldige categorie",
"Target Category": "Doelcategorie", "Target Category": "Doelcategorie",
"Default Expense Category": "Standaard uitgavecategorie", "Default Expense Category": "Standaard uitgavecategorie",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Converter em Lote Transação de Transferência para Transação de Receita", "Batch Convert Transfer Transaction to Income Transaction": "Converter em Lote Transação de Transferência para Transação de Receita",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Categoria Inválida", "Invalid Category": "Categoria Inválida",
"Target Category": "Categoria Alvo", "Target Category": "Categoria Alvo",
"Default Expense Category": "Categoria Padrão de Despesa", "Default Expense Category": "Categoria Padrão de Despesa",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction", "Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Недействительная категория", "Invalid Category": "Недействительная категория",
"Target Category": "Целевая категория", "Target Category": "Целевая категория",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Množično pretvori prenose v prihodke", "Batch Convert Transfer Transaction to Income Transaction": "Množično pretvori prenose v prihodke",
"Batch Convert Selected Amounts to Positive Values": "Množično pretvori izbrane zneske v pozitivne vrednosti", "Batch Convert Selected Amounts to Positive Values": "Množično pretvori izbrane zneske v pozitivne vrednosti",
"Batch Convert Selected Amounts to Negative Values": "Množično pretvori izbrane zneske v negativne vrednosti", "Batch Convert Selected Amounts to Negative Values": "Množično pretvori izbrane zneske v negativne vrednosti",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Neveljavna kategorija", "Invalid Category": "Neveljavna kategorija",
"Target Category": "Ciljna kategorija", "Target Category": "Ciljna kategorija",
"Default Expense Category": "Privzeta kategorija odhodkov", "Default Expense Category": "Privzeta kategorija odhodkov",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "แปลงรายการโอนเป็นรายการรายได้แบบกลุ่ม", "Batch Convert Transfer Transaction to Income Transaction": "แปลงรายการโอนเป็นรายการรายได้แบบกลุ่ม",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "หมวดหมู่ไม่ถูกต้อง", "Invalid Category": "หมวดหมู่ไม่ถูกต้อง",
"Target Category": "หมวดหมู่เป้าหมาย", "Target Category": "หมวดหมู่เป้าหมาย",
"Default Expense Category": "หมวดค่าใช้จ่ายเริ่มต้น", "Default Expense Category": "หมวดค่าใช้จ่ายเริ่มต้น",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Transfer İşlemini Toplu Olarak Gelir İşlemine Dönüştür", "Batch Convert Transfer Transaction to Income Transaction": "Transfer İşlemini Toplu Olarak Gelir İşlemine Dönüştür",
"Batch Convert Selected Amounts to Positive Values": "Seçili Tutarları Toplu Olarak Pozitif Değere Dönüştür", "Batch Convert Selected Amounts to Positive Values": "Seçili Tutarları Toplu Olarak Pozitif Değere Dönüştür",
"Batch Convert Selected Amounts to Negative Values": "Seçili Tutarları Toplu Olarak Negatif Değere Dönüştür", "Batch Convert Selected Amounts to Negative Values": "Seçili Tutarları Toplu Olarak Negatif Değere Dönüştür",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Geçersiz Kategori", "Invalid Category": "Geçersiz Kategori",
"Target Category": "Hedef Kategori", "Target Category": "Hedef Kategori",
"Default Expense Category": "Varsayılan Gider Kategorisi", "Default Expense Category": "Varsayılan Gider Kategorisi",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Пакетно змінити перекази на дохідні транзакції", "Batch Convert Transfer Transaction to Income Transaction": "Пакетно змінити перекази на дохідні транзакції",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Неприпустима категорія", "Invalid Category": "Неприпустима категорія",
"Target Category": "Цільова категорія", "Target Category": "Цільова категорія",
"Default Expense Category": "Категорія витрат за замовчуванням", "Default Expense Category": "Категорія витрат за замовчуванням",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction", "Batch Convert Transfer Transaction to Income Transaction": "Batch Convert Transfer Transaction to Income Transaction",
"Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values", "Batch Convert Selected Amounts to Positive Values": "Batch Convert Selected Amounts to Positive Values",
"Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values", "Batch Convert Selected Amounts to Negative Values": "Batch Convert Selected Amounts to Negative Values",
"Clear All Filters": "Clear All Filters",
"Invalid Category": "Danh mục không hợp lệ", "Invalid Category": "Danh mục không hợp lệ",
"Target Category": "Danh mục mục tiêu", "Target Category": "Danh mục mục tiêu",
"Default Expense Category": "Default Expense Category", "Default Expense Category": "Default Expense Category",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "批量转换转账交易为收入交易", "Batch Convert Transfer Transaction to Income Transaction": "批量转换转账交易为收入交易",
"Batch Convert Selected Amounts to Positive Values": "批量转换选中的金额为正值", "Batch Convert Selected Amounts to Positive Values": "批量转换选中的金额为正值",
"Batch Convert Selected Amounts to Negative Values": "批量转换选中的金额为负值", "Batch Convert Selected Amounts to Negative Values": "批量转换选中的金额为负值",
"Clear All Filters": "清除所有过滤条件",
"Invalid Category": "无效分类", "Invalid Category": "无效分类",
"Target Category": "目标分类", "Target Category": "目标分类",
"Default Expense Category": "默认支出分类", "Default Expense Category": "默认支出分类",
+1
View File
@@ -2019,6 +2019,7 @@
"Batch Convert Transfer Transaction to Income Transaction": "批次將轉帳交易轉換為收入交易", "Batch Convert Transfer Transaction to Income Transaction": "批次將轉帳交易轉換為收入交易",
"Batch Convert Selected Amounts to Positive Values": "批次將選中的金額轉換為正值", "Batch Convert Selected Amounts to Positive Values": "批次將選中的金額轉換為正值",
"Batch Convert Selected Amounts to Negative Values": "批次將選中的金額轉換為負值", "Batch Convert Selected Amounts to Negative Values": "批次將選中的金額轉換為負值",
"Clear All Filters": "清除所有篩選條件",
"Invalid Category": "無效分類", "Invalid Category": "無效分類",
"Target Category": "目標分類", "Target Category": "目標分類",
"Default Expense Category": "預設支出分類", "Default Expense Category": "預設支出分類",
@@ -45,7 +45,7 @@
<v-list> <v-list>
<template :key="groupIndex" v-for="(group, groupIndex) in importTransactionCheckDataTab.filterMenus"> <template :key="groupIndex" v-for="(group, groupIndex) in importTransactionCheckDataTab.filterMenus">
<v-divider class="my-2" v-if="groupIndex > 0" /> <v-divider class="my-2" v-if="groupIndex > 0" />
<v-list-subheader :title="group.title" /> <v-list-subheader :title="group.title" v-if="group.title" />
<v-list-item :key="`menu_${groupIndex}_${index}`" <v-list-item :key="`menu_${groupIndex}_${index}`"
:prepend-icon="menu.prependIcon" :prepend-icon="menu.prependIcon"
:title="menu.title" :title="menu.title"
@@ -452,6 +452,7 @@ import {
mdiAlertOutline, mdiAlertOutline,
mdiPound, mdiPound,
mdiTextBoxEditOutline, mdiTextBoxEditOutline,
mdiFilterOffOutline,
mdiShapePlusOutline, mdiShapePlusOutline,
mdiPencilBoxMultipleOutline, mdiPencilBoxMultipleOutline,
mdiNumericPositive1, mdiNumericPositive1,
@@ -475,7 +476,7 @@ interface ImportTransactionCheckDataFilter {
} }
interface ImportTransactionCheckDataMenuGroup { interface ImportTransactionCheckDataMenuGroup {
title: string; title?: string;
items: ImportTransactionCheckDataMenu[]; items: ImportTransactionCheckDataMenu[];
} }
@@ -560,6 +561,32 @@ const isEditing = computed<boolean>(() => !!editingTransaction.value);
const canImport = computed<boolean>(() => selectedImportTransactionCount.value > 0 && selectedInvalidTransactionCount.value < 1); const canImport = computed<boolean>(() => selectedImportTransactionCount.value > 0 && selectedInvalidTransactionCount.value < 1);
const filterMenus = computed<ImportTransactionCheckDataMenuGroup[]>(() => [ const filterMenus = computed<ImportTransactionCheckDataMenuGroup[]>(() => [
{
items: [
{
title: tt('Clear All Filters'),
prependIcon: mdiFilterOffOutline,
disabled: filters.value.minDatetime === null
&& filters.value.maxDatetime === null
&& filters.value.transactionType === null
&& filters.value.category === null
&& filters.value.amount === null
&& filters.value.account === null
&& filters.value.tag === null
&& filters.value.description === null,
onClick: () => {
filters.value.minDatetime = null;
filters.value.maxDatetime = null;
filters.value.transactionType = null;
filters.value.category = null;
filters.value.amount = null;
filters.value.account = null;
filters.value.tag = null;
filters.value.description = null;
}
}
]
},
{ {
title: tt('Date Range'), title: tt('Date Range'),
items: [ items: [