Skip to content

Commit cd15251

Browse files
committed
Fixed folder settings in mappings to be saved and persist
1 parent 73284cf commit cd15251

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Improved logging in preview and when errors occur via WebSocket commands (#467)
2525
- Fixed pull event handler handling of extremely long class names from diff (#467)
2626
- Fixed Git web UI prompt to update file list when file selected/unselected (#478)
27+
- Fixed folder settings in mappings to be saved and persist (#483)
2728

2829
## [2.4.1] - 2024-08-02
2930

csp/gitprojectsettings.csp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,15 @@ $('[id^=noFoldersSwitch]').click(toggleNoFolders);
668668
</script>
669669
</body>
670670
</html>
671+
<script method='OnPreHTTP' type="text/javascript">
672+
// Check to persist state of no folder switches
673+
$('.mapping-input-group').children('.voca').each(function(){
674+
var currElement = $(this).children().children(".custom-control").children()[0]
675+
if(!$(currElement).hasClass("active")) {
676+
$(currElement).parent().siblings("#NoFolders")[0].value = "NoFolders";
677+
}
678+
});
679+
</script>
671680
<script method='OnPreHTTP' language='cache' runat='server' returntype='%Boolean'>
672681
try {
673682
set %session.UseSessionCookie = 1 // Always set back to autodetect

0 commit comments

Comments
 (0)