mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +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 {
|
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) {
|
if (settingOption) {
|
||||||
return `
|
return `
|
||||||
<div class="action">
|
<div class="action">
|
||||||
|
|||||||
Reference in New Issue
Block a user