Skip to content

Commit bd27d4a

Browse files
committed
fix: remove duplicate success message on settings save
1 parent ed19c80 commit bd27d4a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

csp/gitprojectsettings.csp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ body {
172172
do buffer.BeginCaptureOutput()
173173
$$$ThrowOnError(settings.SaveWithSourceControl())
174174
do buffer.EndCaptureOutput(.out)
175-
&html<<div class="alert alert-primary">
176-
<div>#(..EscapeHTML(out))#</div>
177-
<div>Settings saved.</div>
178-
</div>>
175+
if (out '= "") {
176+
&html<<div class="alert alert-primary">
177+
<div>#(..EscapeHTML(out))#</div>
178+
</div>>
179+
}
179180
} catch err {
180181
kill buffer
181182
do err.Log()

0 commit comments

Comments
 (0)