mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
fix: reuse the translated saving label on the event Save button #921
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user