add clear all filters in import dialog (#416)
This commit is contained in:
@@ -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": "Ungültige Kategorie",
|
||||
"Target Category": "Zielkategorie",
|
||||
"Default Expense Category": "Default Expense Category",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "Categoría No Válida",
|
||||
"Target Category": "Categoría de Destino",
|
||||
"Default Expense Category": "Default Expense Category",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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 Negative Values": "Batch Convert Selected Amounts to Negative Values",
|
||||
"Clear All Filters": "Clear All Filters",
|
||||
"Invalid Category": "Catégorie invalide",
|
||||
"Target Category": "Catégorie cible",
|
||||
"Default Expense Category": "Catégorie de dépense par défaut",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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 Negative Values": "Batch Convert Selected Amounts to Negative Values",
|
||||
"Clear All Filters": "Clear All Filters",
|
||||
"Invalid Category": "Categoria non valida",
|
||||
"Target Category": "Categoria di destinazione",
|
||||
"Default Expense Category": "Categoria di spesa predefinita",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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": "無効なカテゴリ",
|
||||
"Target Category": "対象カテゴリ",
|
||||
"Default Expense Category": "Default Expense Category",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"Batch Convert Transfer Transaction to Income Transaction": "ಹಸ್ತಾಂತರ ವಹಿವಾಟುಗಳನ್ನು ಬ್ಯಾಚ್ ಆದಾಯ ವಹಿವಾಟುಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
|
||||
"Batch Convert Selected Amounts to Positive Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಧನಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
|
||||
"Batch Convert Selected Amounts to Negative Values": "ಆಯ್ಕೆ ಮಾಡಿದ ಮೊತ್ತಗಳನ್ನು ಋಣಾತ್ಮಕ ಮೌಲ್ಯಗಳಿಗೆ ಪರಿವರ್ತಿಸಿ",
|
||||
"Clear All Filters": "Clear All Filters",
|
||||
"Invalid Category": "ಅಮಾನ್ಯ ವರ್ಗ",
|
||||
"Target Category": "ಗುರಿ ವರ್ಗ",
|
||||
"Default Expense Category": "ಡೀಫಾಲ್ಟ್ ಖರ್ಚು ವರ್ಗ",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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": "유효하지 않은 카테고리",
|
||||
"Target Category": "대상 카테고리",
|
||||
"Default Expense Category": "기본 비용 카테고리",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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 Negative Values": "Batch Convert Selected Amounts to Negative Values",
|
||||
"Clear All Filters": "Clear All Filters",
|
||||
"Invalid Category": "Ongeldige categorie",
|
||||
"Target Category": "Doelcategorie",
|
||||
"Default Expense Category": "Standaard uitgavecategorie",
|
||||
|
||||
@@ -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 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": "Categoria Inválida",
|
||||
"Target Category": "Categoria Alvo",
|
||||
"Default Expense Category": "Categoria Padrão de Despesa",
|
||||
|
||||
@@ -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": "Недействительная категория",
|
||||
"Target Category": "Целевая категория",
|
||||
"Default Expense Category": "Default Expense Category",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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 Negative Values": "Množično pretvori izbrane zneske v negativne vrednosti",
|
||||
"Clear All Filters": "Clear All Filters",
|
||||
"Invalid Category": "Neveljavna kategorija",
|
||||
"Target Category": "Ciljna kategorija",
|
||||
"Default Expense Category": "Privzeta kategorija odhodkov",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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": "หมวดหมู่ไม่ถูกต้อง",
|
||||
"Target Category": "หมวดหมู่เป้าหมาย",
|
||||
"Default Expense Category": "หมวดค่าใช้จ่ายเริ่มต้น",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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 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",
|
||||
"Target Category": "Hedef Kategori",
|
||||
"Default Expense Category": "Varsayılan Gider Kategorisi",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"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": "Неприпустима категорія",
|
||||
"Target Category": "Цільова категорія",
|
||||
"Default Expense Category": "Категорія витрат за замовчуванням",
|
||||
|
||||
@@ -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": "Danh mục không hợp lệ",
|
||||
"Target Category": "Danh mục mục tiêu",
|
||||
"Default Expense Category": "Default Expense Category",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"Batch Convert Transfer Transaction to Income Transaction": "批量转换转账交易为收入交易",
|
||||
"Batch Convert Selected Amounts to Positive Values": "批量转换选中的金额为正值",
|
||||
"Batch Convert Selected Amounts to Negative Values": "批量转换选中的金额为负值",
|
||||
"Clear All Filters": "清除所有过滤条件",
|
||||
"Invalid Category": "无效分类",
|
||||
"Target Category": "目标分类",
|
||||
"Default Expense Category": "默认支出分类",
|
||||
|
||||
@@ -2019,6 +2019,7 @@
|
||||
"Batch Convert Transfer Transaction to Income Transaction": "批次將轉帳交易轉換為收入交易",
|
||||
"Batch Convert Selected Amounts to Positive Values": "批次將選中的金額轉換為正值",
|
||||
"Batch Convert Selected Amounts to Negative Values": "批次將選中的金額轉換為負值",
|
||||
"Clear All Filters": "清除所有篩選條件",
|
||||
"Invalid Category": "無效分類",
|
||||
"Target Category": "目標分類",
|
||||
"Default Expense Category": "預設支出分類",
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<v-list>
|
||||
<template :key="groupIndex" v-for="(group, groupIndex) in importTransactionCheckDataTab.filterMenus">
|
||||
<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}`"
|
||||
:prepend-icon="menu.prependIcon"
|
||||
:title="menu.title"
|
||||
|
||||
@@ -452,6 +452,7 @@ import {
|
||||
mdiAlertOutline,
|
||||
mdiPound,
|
||||
mdiTextBoxEditOutline,
|
||||
mdiFilterOffOutline,
|
||||
mdiShapePlusOutline,
|
||||
mdiPencilBoxMultipleOutline,
|
||||
mdiNumericPositive1,
|
||||
@@ -475,7 +476,7 @@ interface ImportTransactionCheckDataFilter {
|
||||
}
|
||||
|
||||
interface ImportTransactionCheckDataMenuGroup {
|
||||
title: string;
|
||||
title?: string;
|
||||
items: ImportTransactionCheckDataMenu[];
|
||||
}
|
||||
|
||||
@@ -560,6 +561,32 @@ const isEditing = computed<boolean>(() => !!editingTransaction.value);
|
||||
const canImport = computed<boolean>(() => selectedImportTransactionCount.value > 0 && selectedInvalidTransactionCount.value < 1);
|
||||
|
||||
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'),
|
||||
items: [
|
||||
|
||||
Reference in New Issue
Block a user