mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
client: switch widget: handle the disabled state
This commit is contained in:
@@ -56,11 +56,11 @@ export default class SharedSwitchWidget extends SwitchWidget {
|
||||
this.isToggled = isShared;
|
||||
|
||||
if (switchDisabled) {
|
||||
//this.$widget.attr("title", t("shared_switch.inherited"));
|
||||
//this.$switchOff.addClass("switch-disabled");
|
||||
this.disabledTooltip = t("shared_switch.inherited");
|
||||
this.canToggle = false;
|
||||
} else {
|
||||
//this.$widget.removeAttr("title");
|
||||
//this.$switchOff.removeClass("switch-disabled");
|
||||
this.disabledTooltip = "";
|
||||
this.canToggle = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user