Skip to content

Commit 06831bf

Browse files
committed
fix: compile CSP pages for Git UIs after install
fixes UIs on 2025.1 where auto-compile is no longer the default
1 parent 777faba commit 06831bf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,6 +2798,14 @@ ClassMethod ConfigureWeb()
27982798
if $$$ISERR(st) do $System.Status.DisplayError(st)
27992799
}
28002800

2801+
ClassMethod CompileGitUIs()
2802+
{
2803+
new $namespace
2804+
set $namespace = "%SYS"
2805+
set st = ##class(%SYSTEM.CSP).LoadPageDir("/isc/studio/usertemplates/gitsourcecontrol/")
2806+
if $$$ISERR(st) do $System.Status.DisplayError(st)
2807+
}
2808+
28012809
ClassMethod CheckInitialization()
28022810
{
28032811
if ##class(SourceControl.Git.Utils).GitBinExists(.version) {
@@ -3311,4 +3319,3 @@ ClassMethod IsSchemaStandard(pName As %String = "") As %Boolean [ Internal ]
33113319
}
33123320

33133321
}
3314-

module.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<FileCopy Name="csp/sync.csp" Target="${mgrDir}../devuser/studio/templates/gitsourcecontrol/sync.csp" />
3131
<FileCopy Name="git-webui/release/share/git-webui/webui/" Target="${mgrDir}../devuser/studio/templates/gitsourcecontrol/" Overlay="1" />
3232

33+
<Invoke Class="SourceControl.Git.Utils" Method="CompileGitUIs" />
3334
<Invoke Class="SourceControl.Git.Utils" Method="OutputConfigureMessage" />
3435
<Invoke Class="SourceControl.Git.Utils" Method="Localize" />
3536
<Invoke Class="SourceControl.Git.Utils" Method="ConfigureWeb" />

0 commit comments

Comments
 (0)