mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
This commit disables the save button when the topic name is considered as empty as part of the `realm_mandatory_topics` being set to True. Since disabled elements do not fire events, it is not possible to trigger tippy tooltips on disabled elements – such as the Save button in the inline topic edit UI. Thus this commit adds a tooltip to the disabled save button by wrapping/unwrapping it inside a `span` wrapper pragmatically via the `ui_util.disable_element_and_add_tooltip` and `ui_util.enable_element_and_remove_tooltip` helper methods.
26 KiB
26 KiB