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:
Kanishk Kakar
2019-07-22 14:28:16 +05:30
committed by Akash Nimare
parent 20ac6bf921
commit ac6f14f5b4

View File

@@ -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">