This repository was archived by the owner on Dec 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,29 @@ export class Action<
106106 */
107107 public keyPad = true ;
108108
109+ /**
110+ * Boolean to disable the title field for users in the property inspector.
111+ * True by default.
112+ *
113+ * @type {boolean }
114+ */
115+ public enableUserTitle = true ;
116+
117+ /**
118+ * Boolean to hide the action in the actions list. This can be used for a
119+ * plugin that only works with a specific profile. True by default.
120+ *
121+ * @type {boolean }
122+ */
123+ public isVisibleInActionsList = true ;
124+
125+ /**
126+ * Boolean to disable image caching. False by default.
127+ *
128+ * @type {boolean }
129+ */
130+ public disableCachingImages = false ;
131+
109132 constructor ( params : {
110133 name : string ;
111134 inspectorName ?: string ;
@@ -159,6 +182,17 @@ export class Action<
159182 ] ,
160183 // ["Controllers", controllers],
161184 [ "Encoder" , this . encoder !== undefined , this . encoder . toManifest ( ) ] ,
185+ [
186+ "UserTitleEnabled" ,
187+ this . enableUserTitle === false ,
188+ this . enableUserTitle ,
189+ ] ,
190+ [
191+ "VisibleInActionsList" ,
192+ this . isVisibleInActionsList === false ,
193+ this . isVisibleInActionsList ,
194+ ] ,
195+ [ "DisableCaching" , this . disableCachingImages , this . disableCachingImages ] ,
162196 ] ;
163197
164198 optionals . forEach ( ( [ prop , condition , value ] ) => {
You can’t perform that action at this time.
0 commit comments