@@ -29,6 +29,7 @@ XData Menu
29
29
<MenuItem Name =" NewBranch" />
30
30
<MenuItem Name =" SwitchBranch" />
31
31
<MenuItem Separator =" true" />
32
+ <MenuItem Name =" ExportSystemDefaults" />
32
33
<MenuItem Name =" Export" />
33
34
<MenuItem Name =" ExportForce" />
34
35
<MenuItem Name =" Import" />
@@ -125,6 +126,7 @@ Method LocalizeName(name As %String) As %String
125
126
" Settings" :$$$Text(" @Settings@Settings" ),
126
127
" Init" :$$$Text(" @Init@Initialize" ),
127
128
" GitWebUI" :$$$Text(" @GitWebUI@Launch Git UI" ),
129
+ " ExportSystemDefaults" :$$$Text(" @ExportSystemDefaults@Export System Default Settings" ),
128
130
" Export" :$$$Text(" @Export@Export All" ),
129
131
" ExportForce" :$$$Text(" @ExportForce@Export All (Force)" ),
130
132
" Import" :$$$Text(" @Import@Import All" ),
@@ -160,6 +162,11 @@ Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef Display
160
162
quit ..OnSourceMenuContextItem (InternalName ,name ,.Enabled ,.DisplayName )
161
163
}
162
164
165
+ if name = " ExportSystemDefaults" {
166
+ set Enabled = ##class (%Library.EnsembleMgr ).IsEnsembleNamespace ()
167
+ quit $$$OK
168
+ }
169
+
163
170
if ##class (SourceControl.Git.Utils ).BasicMode () {
164
171
set Enabled = $CASE (name ,
165
172
" Status" : 1 ,
@@ -171,7 +178,6 @@ Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef Display
171
178
" Sync" : 1 ,
172
179
" " : 1 ,
173
180
:-1
174
-
175
181
)
176
182
} else {
177
183
set Enabled = $CASE (name ,
0 commit comments