Skip to content

Commit e8dbf1a

Browse files
committed
updated changelog, added namespace change event reroute, explicit default for Enabled
1 parent cf44cef commit e8dbf1a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Web UI includes a "Push Branch" button for local branches that are ahead of upstream
12+
- Added "Status" menu item to editor menu (#285)
1213

1314
### Fixed
1415
- Fixed empty mappings when SourceControl.Git.Settings is instantiated (#250)

cls/SourceControl/Git/Extension.cls

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ XData Menu
4343

4444
Method UserAction(Type As %Integer, Name As %String, InternalName As %String, SelectedText As %String, ByRef Action As %String, ByRef Target As %String, ByRef Msg As %String, ByRef Reload As %Boolean) As %Status
4545
{
46+
// If namespace change event
47+
if Type = 1, Name = 5 {
48+
// reroute to Status menu option
49+
set Name = "%SourceMenu,Status"
50+
}
51+
4652
#dim ec as %Status = $$$OK
47-
#dim menu as %Status = $piece(Name, ",", 1)
53+
#dim menu as %Status = $piece(Name, ",", 1)
4854
if menu '= "%SourceMenu", menu'="%SourceContext" {
4955
quit $$$OK
5056
}
@@ -94,7 +100,7 @@ Method LocalizeName(name As %String) As %String
94100
Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef DisplayName As %String, InternalName As %String) As %Status
95101
{
96102
if name = "Settings" {
97-
// what is `Enabled` set to here? 0?
103+
set Enabled = 1
98104
quit $$$OK
99105
}
100106
if ##class(Utils).NeedSettings() {

0 commit comments

Comments
 (0)