From 442de20d9001d3427441819ec1c1dec1de77ca03 Mon Sep 17 00:00:00 2001
From: nathan <nathangray.bsc+github@gmail.com>
Date: Tue, 14 Sep 2021 11:50:10 -0600
Subject: [PATCH] Add missing set_disabled() method

---
 api/js/etemplate/Et2Widget/Et2Widget.ts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts
index 30f426603e..e8e7b69da2 100644
--- a/api/js/etemplate/Et2Widget/Et2Widget.ts
+++ b/api/js/etemplate/Et2Widget/Et2Widget.ts
@@ -186,6 +186,16 @@ const Et2WidgetMixin = (superClass) =>
 			}
 		}
 
+		/**
+		 * Wrapper on this.disabled because legacy had it.
+		 *
+		 * @param {boolean} value
+		 */
+		set_disabled(value : boolean)
+		{
+			this.disabled = value;
+		}
+
 		set label(value : string)
 		{
 			let oldValue = this.label;
@@ -669,7 +679,7 @@ const Et2WidgetMixin = (superClass) =>
 
 			let widget_class = window.customElements.get(this.nodeName);
 			let properties = widget_class ? widget_class.properties() : {};
-			
+
 			if(_parent)
 			{
 				copy.setParent(_parent);