Skip to content

Commit

Permalink
feat: add tooltip to button for better UX (calcom#17881)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Nov 27, 2024
1 parent a7e99f3 commit ab9b602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/public/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"event_request_reassigned": "Your scheduled event was reassigned",
"event_reassigned_subtitle": "You will no longer have the event on your calendar and your round robin likelihood will not be negatively impacted",
"organizer": "Organizer",
"owner_permission_needed": "You need to be an owner of the organization.",
"reassigned_to": "Reassigned to",
"need_to_reschedule_or_cancel": "Need to reschedule or cancel?",
"you_can_view_booking_details_with_this_url": "You can view the booking details from this url {{url}} and add the event to your calendar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ const GeneralView = ({ currentOrg, isAdminOrOwner, localeProp }: GeneralViewProp
</div>

<SectionBottomActions align="end">
<Button disabled={isDisabled} color="primary" type="submit">
<Button
disabled={isDisabled}
color="primary"
type="submit"
tooltip={!isAdminOrOwner ? t("owner_permission_needed") : undefined}>
{t("update")}
</Button>
</SectionBottomActions>
Expand Down

0 comments on commit ab9b602

Please sign in to comment.