@@ -209,6 +209,14 @@ proc apps::isPublic {appId} {
209209 return [$app isPublic]
210210}
211211
212+ proc apps::isProductionAvailable {appId} {
213+ set app [getAppById $appId ]
214+ if {$app eq " " } {return 0}
215+ if {$::Kratos::kratos_private(Production) eq " 0" } {return 1}
216+ # W "Checking if app $appId is production ready = [$app isProductionReady]"
217+ return [$app isProductionReady]
218+ }
219+
212220proc apps::CheckElemState {elem inputid {arg " " } } {
213221 variable activeApp
214222
@@ -227,7 +235,7 @@ oo::class create App {
227235 variable writeCustomEvent
228236 variable writeValidateEvent
229237 variable prefix
230- variable release
238+ variable production_ready
231239 variable is_tool
232240
233241 variable properties
@@ -244,6 +252,7 @@ oo::class create App {
244252 variable public
245253 variable is_tool
246254 variable properties
255+ variable production_ready
247256
248257 set name $n
249258 set publicname $n
@@ -263,6 +272,7 @@ oo::class create App {
263272 set prefix " "
264273 set public 0
265274 set is_tool 0
275+ set production_ready 0
266276
267277 set properties [dict create ]
268278 apps::LoadAppProperties [self]
@@ -302,6 +312,8 @@ oo::class create App {
302312
303313 method setPublic {v} {variable public; set public $v }
304314 method isPublic { } {variable public; return $public }
315+ method setProductionReady {v} {variable production_ready; set production_ready $v }
316+ method isProductionReady { } {variable production_ready; return $production_ready }
305317
306318 method setIsTool {v} {variable is_tool; set is_tool $v }
307319 method isTool { } {variable is_tool; return $is_tool }
0 commit comments