fix: reuse the translated saving label on the event Save button #921

This commit is contained in:
Linus Rath
2026-09-30 14:23:33 +02:00
parent 7282adbb06
commit e127f5d24b
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -647,7 +647,7 @@ export function EventModal({
} finally {
setIsSaving(false);
}
}, [title, description, location, virtualLocation, startDate, startTime, endDate, endTime, allDay, calendarId, recurrence, customRule, alertRows, attendees, sendInvitations, currentUserEmails, existingParticipants, resolveContactName, event, onSave, isSaving]);
}, [title, description, location, virtualLocation, startDate, startTime, endDate, endTime, allDay, calendarId, recurrence, customRule, alertRows, attendees, sendInvitations, currentUserEmails, existingParticipants, resolveContactName, event, onSave, isSaving, t]);
const handleRsvp = useCallback((status: CalendarParticipant['participationStatus']) => {
if (!event || !userParticipantId || !onRsvp) return;
@@ -1453,7 +1453,7 @@ export function EventModal({
>
{/* While a save is in flight the button was disabled with no visible change, so a
slow request (mobile, VPN) looked like a dead button for the whole timeout. */}
{isSaving ? t("form.saving") : t("form.save")}
{isSaving ? t("subscription.saving") : t("form.save")}
</Button>
</div>
)}
-1
View File
@@ -2945,7 +2945,6 @@
"all_day_event": "All-day event",
"calendar_select": "Calendar",
"save": "Save",
"saving": "Saving…",
"cancel": "Cancel",
"delete_confirm": "Are you sure you want to delete this event?",
"color": "Color"