chore: throw toast when adding a new date overwrite (#11764)

Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/11767/head
Anik Dhabal Babu 2023-10-09 16:14:11 +05:30 committed by GitHub
parent 0b310c0ea8
commit a5993061f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -1619,6 +1619,7 @@
"date_overrides_mark_all_day_unavailable_other": "Mark unavailable on selected dates",
"date_overrides_add_btn": "Add Override",
"date_overrides_update_btn": "Update Override",
"date_successfully_added": "Date override added successfully",
"event_type_duplicate_copy_text": "{{slug}}-copy",
"set_as_default": "Set as default",
"hide_eventtype_details": "Hide event type details",

View File

@ -14,6 +14,7 @@ import {
DialogHeader,
DialogClose,
Switch,
showToast,
Form,
Button,
} from "@calcom/ui";
@ -177,6 +178,9 @@ const DateOverrideForm = ({
className="ml-2"
color="primary"
type="submit"
onClick={() => {
showToast(t("date_successfully_added"), "success");
}}
disabled={selectedDates.length === 0}
data-testid="add-override-submit-btn">
{value ? t("date_overrides_update_btn") : t("date_overrides_add_btn")}