mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-24 08:33:36 +00:00
settings: Show tooltip when setting disabled.
If setting has been locked by an admin, then a tooltip is shown in the settings page.
This commit is contained in:
committed by
Akash Nimare
parent
20ac6bf921
commit
ac6f14f5b4
@@ -20,7 +20,7 @@ class BaseSection extends BaseComponent {
|
||||
}
|
||||
|
||||
generateOptionTemplate(settingOption: boolean, disabled: boolean): string {
|
||||
const label = disabled ? `<label class="disallowed" />` : `<label/>`;
|
||||
const label = disabled ? `<label class="disallowed" title="Setting locked by system administrator."/>` : `<label/>`;
|
||||
if (settingOption) {
|
||||
return `
|
||||
<div class="action">
|
||||
|
||||
Reference in New Issue
Block a user