Skip to content

Commit 30d96bf

Browse files
committed
enh: warn if source control extension not configured
1 parent ea38138 commit 30d96bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
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
- Option to lock/unlock namespace is now available on the settings page (#650)
12+
- Settings page now warns if Embedded Git is not the configured source control extension (#857)
1213

1314
### Fixed
1415
- When cloning a repo with Configure, that repo's embedded-git-config file will overwrite previous settings (#819)

csp/gitprojectsettings.csp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ body {
210210
}
211211
</server>
212212
<div class = 'container'>
213+
<csp:if condition='$case(##class(%Studio.SourceControl.Interface).SourceControlClassGet(),"SourceControl.Git.Extension":0,:1)'>
214+
<div class="error alert-danger">
215+
<span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>
216+
Embedded Git is not the configured source control extension for this namespace. To change, modify the
217+
<a href="#($Piece(%request.Application,%request.AppMatch)_"/csp/sys/mgr/%25CSP.UI.Portal.SourceControl.zen?$NAMESPACE="_$namespace)#">
218+
Source Control Settings</a>.
219+
</div>
220+
</csp:if>
213221
<csp:if condition='$get(successfullySavedSettings) && (##class(SourceControl.Git.Utils).NeedSettings() = 0)'>
214222
<div class = "alert">
215223
<span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>

0 commit comments

Comments
 (0)