change the text of the unset start and end time in scheduled transaction

This commit is contained in:
MaysWind
2025-06-22 18:07:11 +08:00
parent 57ead2937b
commit 481618037d
14 changed files with 18 additions and 2 deletions
+3
View File
@@ -55,6 +55,7 @@ const props = defineProps<{
readonly?: boolean; readonly?: boolean;
clearable?: boolean; clearable?: boolean;
label?: string; label?: string;
noDataText?: string;
}>(); }>();
const emit = defineEmits<{ const emit = defineEmits<{
@@ -83,6 +84,8 @@ const isYearFirst = computed<boolean>(() => isLongDateMonthAfterYear());
const displayTime = computed<string>(() => { const displayTime = computed<string>(() => {
if (props.modelValue) { if (props.modelValue) {
return formatDateToLongDate(props.modelValue); return formatDateToLongDate(props.modelValue);
} else if (props.noDataText) {
return props.noDataText;
} else { } else {
return tt('Unspecified'); return tt('Unspecified');
} }
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Keine", "None": "Keine",
"Unspecified": "Nicht angegeben", "Unspecified": "Nicht angegeben",
"Not set": "Nicht festgelegt", "Not set": "Nicht festgelegt",
"No limit": "No limit",
"No results": "Keine Ergebnisse", "No results": "Keine Ergebnisse",
"Unknown": "Unbekannt", "Unknown": "Unbekannt",
"Auto detect": "Auto detect", "Auto detect": "Auto detect",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "None", "None": "None",
"Unspecified": "Unspecified", "Unspecified": "Unspecified",
"Not set": "Not set", "Not set": "Not set",
"No limit": "No limit",
"No results": "No results", "No results": "No results",
"Unknown": "Unknown", "Unknown": "Unknown",
"Auto detect": "Auto detect", "Auto detect": "Auto detect",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Ninguno", "None": "Ninguno",
"Unspecified": "No especificado", "Unspecified": "No especificado",
"Not set": "No establecido", "Not set": "No establecido",
"No limit": "No limit",
"No results": "Sin resultados", "No results": "Sin resultados",
"Unknown": "Desconocido", "Unknown": "Desconocido",
"Auto detect": "Auto detect", "Auto detect": "Auto detect",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Nessuno", "None": "Nessuno",
"Unspecified": "Non specificato", "Unspecified": "Non specificato",
"Not set": "Non impostato", "Not set": "Non impostato",
"No limit": "No limit",
"No results": "Nessun risultato", "No results": "Nessun risultato",
"Unknown": "Sconosciuto", "Unknown": "Sconosciuto",
"Auto detect": "Rilevamento automatico", "Auto detect": "Rilevamento automatico",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "なし", "None": "なし",
"Unspecified": "不特定", "Unspecified": "不特定",
"Not set": "セットしていない", "Not set": "セットしていない",
"No limit": "No limit",
"No results": "結果はありません", "No results": "結果はありません",
"Unknown": "不明", "Unknown": "不明",
"Auto detect": "自動検出", "Auto detect": "自動検出",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Nenhum", "None": "Nenhum",
"Unspecified": "Não especificado", "Unspecified": "Não especificado",
"Not set": "Não definido", "Not set": "Não definido",
"No limit": "No limit",
"No results": "Sem resultados", "No results": "Sem resultados",
"Unknown": "Desconhecido", "Unknown": "Desconhecido",
"Auto detect": "Detecção automática", "Auto detect": "Detecção automática",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Нет", "None": "Нет",
"Unspecified": "Не указано", "Unspecified": "Не указано",
"Not set": "Не установлено", "Not set": "Не установлено",
"No limit": "No limit",
"No results": "Нет результатов", "No results": "Нет результатов",
"Unknown": "Неизвестно", "Unknown": "Неизвестно",
"Auto detect": "Auto detect", "Auto detect": "Auto detect",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Немає", "None": "Немає",
"Unspecified": "Не вказано", "Unspecified": "Не вказано",
"Not set": "Не встановлено", "Not set": "Не встановлено",
"No limit": "No limit",
"No results": "Немає результатів", "No results": "Немає результатів",
"Unknown": "Невідомо", "Unknown": "Невідомо",
"Auto detect": "Автовизначення", "Auto detect": "Автовизначення",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "Không có", "None": "Không có",
"Unspecified": "Không xác định", "Unspecified": "Không xác định",
"Not set": "Not set", "Not set": "Not set",
"No limit": "No limit",
"No results": "Không có kết quả", "No results": "Không có kết quả",
"Unknown": "Không rõ", "Unknown": "Không rõ",
"Auto detect": "Auto detect", "Auto detect": "Auto detect",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "无", "None": "无",
"Unspecified": "未指定", "Unspecified": "未指定",
"Not set": "未设置", "Not set": "未设置",
"No limit": "无限制",
"No results": "无结果", "No results": "无结果",
"Unknown": "未知", "Unknown": "未知",
"Auto detect": "自动检测", "Auto detect": "自动检测",
+1
View File
@@ -1331,6 +1331,7 @@
"None": "無", "None": "無",
"Unspecified": "未指定", "Unspecified": "未指定",
"Not set": "未設置", "Not set": "未設置",
"No limit": "無限制",
"No results": "無結果", "No results": "無結果",
"Unknown": "未知", "Unknown": "未知",
"Auto detect": "自動偵測", "Auto detect": "自動偵測",
@@ -258,6 +258,7 @@
:disabled="loading || submitting" :disabled="loading || submitting"
:clearable="true" :clearable="true"
:label="tt('Start Date')" :label="tt('Start Date')"
:no-data-text="tt('No limit')"
v-model="transaction.scheduledStartDate" /> v-model="transaction.scheduledStartDate" />
</v-col> </v-col>
<v-col cols="12" md="6" v-if="type === TransactionEditPageType.Template && transaction instanceof TransactionTemplate && transaction.templateType === TemplateType.Schedule.type"> <v-col cols="12" md="6" v-if="type === TransactionEditPageType.Template && transaction instanceof TransactionTemplate && transaction.templateType === TemplateType.Schedule.type">
@@ -266,6 +267,7 @@
:disabled="loading || submitting" :disabled="loading || submitting"
:clearable="true" :clearable="true"
:label="tt('End Date')" :label="tt('End Date')"
:no-data-text="tt('No limit')"
v-model="transaction.scheduledEndDate" /> v-model="transaction.scheduledEndDate" />
</v-col> </v-col>
<v-col cols="12" md="12" v-if="type === TransactionEditPageType.Transaction"> <v-col cols="12" md="12" v-if="type === TransactionEditPageType.Transaction">
+2 -2
View File
@@ -756,7 +756,7 @@ const transactionDisplayScheduledStartDate = computed<string>(() => {
if (template.scheduledStartDate) { if (template.scheduledStartDate) {
return formatDateToLongDate(template.scheduledStartDate); return formatDateToLongDate(template.scheduledStartDate);
} else { } else {
return tt('Unspecified'); return tt('No limit');
} }
}); });
@@ -770,7 +770,7 @@ const transactionDisplayScheduledEndDate = computed<string>(() => {
if (template.scheduledEndDate) { if (template.scheduledEndDate) {
return formatDateToLongDate(template.scheduledEndDate); return formatDateToLongDate(template.scheduledEndDate);
} else { } else {
return tt('Unspecified'); return tt('No limit');
} }
}); });