File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
- Fixed slowness loading some CSP pages with multiple instances sharing a webserver (#540 )
19
19
- Prevent direct commits to default merge branch in basic mode (#484 )
20
20
- Fixed git path configuration (#463 )
21
+ - Added feedback to settings page (#550 )
21
22
22
23
## [ 2.6.0] - 2024-10-07
23
24
Original file line number Diff line number Diff line change @@ -68,6 +68,27 @@ body {
68
68
padding-left: 4px;
69
69
}
70
70
71
+ .alert {
72
+ padding: 20px;
73
+ background-color: #04AA6D;;
74
+ color: white;
75
+ }
76
+
77
+ .closebtn {
78
+ margin-left: 15px;
79
+ color: white;
80
+ font-weight: bold;
81
+ float: right;
82
+ font-size: 22px;
83
+ line-height: 20px;
84
+ cursor: pointer;
85
+ transition: 0.3s;
86
+ }
87
+
88
+ .closebtn:hover {
89
+ color: black;
90
+ }
91
+
71
92
</style>
72
93
</head>
73
94
<body>
@@ -134,7 +155,13 @@ body {
134
155
do settings.%Save()
135
156
}
136
157
</server>
137
- <div class = 'container'>
158
+ <div class = 'container'>
159
+ <csp:if condition='$D(%request.Data("gitsettings",1)) && (##class(SourceControl.Git.Utils).NeedSettings() = 0)'>
160
+ <div class = "alert">
161
+ <span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
162
+ <strong>Success!</strong> Your changes have been saved.
163
+ </div>
164
+ </csp:if>
138
165
<form id="settingsForm" method='post'>
139
166
<input type="hidden" name="Namespace" value="#(..EscapeHTML(namespace))#" />
140
167
<input type="hidden" name="gitsettings" value="1" />
@@ -574,9 +601,6 @@ body {
574
601
</div>
575
602
576
603
</form>
577
- <csp:if condition='$D(%request.Data("gitsettings",1)) && (##class(SourceControl.Git.Utils).NeedSettings() = 0)'>
578
- <em>Settings saved. Click cross in the upper-right corner to close the settings window.</em>
579
- </csp:if>
580
604
</div>
581
605
<script src="js/polyfills.js"></script>
582
606
<script src="js/jquery.min.js"></script>
You can’t perform that action at this time.
0 commit comments