Skip to content

Commit bb54fb9

Browse files
authored
Merge pull request #33 from microting/master
Updates
2 parents ead55d2 + a5bb64c commit bb54fb9

File tree

8 files changed

+23
-9
lines changed

8 files changed

+23
-9
lines changed

eFormAPI/eFormAPI/Controllers/SettingsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public OperationResult ResetPageHeaderSettings()
356356

357357
#endregion
358358

359-
[Authorize]
359+
[AllowAnonymous]
360360
[HttpGet]
361361
[Route("api/settings/version")]
362362
public OperationDataResult<string> GetApplicationVersion()

eFormAPI/eFormAPI/Infrastructure/Helpers/CaseUpdateHelper.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ public static List<string> GetFieldValuesByRequestField(CaseEditRequestField edi
4646
var checkBoxfirst = editRequestField?.FieldValues?.First();
4747
if (checkBoxfirst?.Value != null && checkBoxfirst?.FieldId != null)
4848
{
49-
string val = $"{checkBoxfirst.FieldId}|{checkBoxfirst.Value.ToString()}";
49+
string val;
50+
if (checkBoxfirst.Value.ToString() == "1" || checkBoxfirst.Value.ToString() == "checked")
51+
{
52+
val = $"{checkBoxfirst.FieldId}|checked";
53+
} else
54+
{
55+
val = $"{checkBoxfirst.FieldId}|unchecked";
56+
}
5057
list.Add(val);
5158
}
5259

@@ -55,7 +62,7 @@ public static List<string> GetFieldValuesByRequestField(CaseEditRequestField edi
5562
var commentFirst = editRequestField?.FieldValues?.First();
5663
if (commentFirst?.Value != null && commentFirst?.FieldId != null)
5764
{
58-
string val = $"{commentFirst.FieldId}|{commentFirst.Value.ToString()}";
65+
string val = $"{commentFirst.FieldId}|{commentFirst.Value.ToString().Replace("</p>", "<br>").Replace("<p>", "").Replace("<div>", "").Replace("</div>", "<br>").Replace("&nbsp;", "").Replace("</span>","").Replace("<span style=\"font-size: 1rem;\">","").Replace("</br>","<br>")}";
5966
list.Add(val);
6067
}
6168

eform-client/src/app/common/modules/eform-imported/pell/pell.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class PellComponent implements OnInit, AfterViewInit, OnChanges {
3737

3838
ngOnChanges(changes: any) {
3939
try {
40-
if (this.editor.content.innerHTML != this.value) {
40+
if (this.editor.content.innerHTML !== this.value) {
4141
this.editor.content.innerHTML = this.value;
4242
}
4343
} catch (err) {

eform-client/src/app/components/footer/footer.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
</a> <span class="ml-2 mr-2"> | </span>
77
<a href="https://www.microting.com/privacy-policy" target="_blank">
88
{{'Privacy Policy' | translate}}
9+
</a><span class="ml-2 mr-2"> | </span>
10+
<a href="https://www.microting.com/data-protection-terms/" target="_blank">
11+
{{'Data Protection Terms (GDPR)' | translate}}
912
</a>
1013
<b></b>
1114
</div>
1215
</div>
1316
<div class="footer-copyright text-center p-2 copyright-section">
14-
<p>© Microting A/S 2007 - 2018 </p>
15-
<p>{{version}}</p>
17+
<div>© Microting A/S 2007 - 2018 <div class="footer-version">v{{version}}</div> </div>
1618
</div>
1719
</footer>

eform-client/src/app/modules/application-settings/components/connection-setup/connection-setup.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class ConnectionSetupComponent implements OnInit {
2121
}
2222

2323
ngOnInit() {
24+
this.settingsModel.generalAppSetupSettingsModel.defaultLocale = 'en-US';
2425
}
2526

2627
updateConnectionString() {

eform-client/src/app/plugins/modules/shared/components/text-editor-pn/pell-pn.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ export const init = settings => {
6666
actionbar.appendChild(button);
6767
});
6868

69-
if (settings.defaultParagraphSeparator) exec('defaultParagraphSeparator', settings.defaultParagraphSeparator)
69+
if (settings.defaultParagraphSeparator) { exec('defaultParagraphSeparator', settings.defaultParagraphSeparator); }
7070
if (settings.styleWithCSS) { exec('styleWithCSS'); }
7171

72-
7372
return settings.element;
7473
};
7574

eform-client/src/assets/i18n/da-DK.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"Create new selectable list": "Opret ny valgbar liste",
9292
"Terms of Service": "Servicevilkår",
9393
"Privacy Policy": "Fortrolighedspolitik",
94+
"Data Protection Terms (GDPR)": "Databeskyttelsesvilkår (GDPR) (en)",
9495
"Save password": "Gem adgangskode",
9596
"Edit Device User": "Rediger enhedsbruger",
9697
"First Name": "Fornavn",

eform-client/src/scss/styles.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* You can add global styles to this file, and also import other style files */
1+
/* You can add global styles to this file, and also import other style files 2 */
22
//ng-select
33
@import "components/index";
44
@import "utilities/colors";
@@ -64,3 +64,7 @@ gallery {
6464
.pull-right {
6565
float: right !important;
6666
}
67+
.footer-version {
68+
color: gray;
69+
font-size: 0.8em;
70+
}

0 commit comments

Comments
 (0)