Skip to content

Commit

Permalink
Merge pull request #189 from KorzhCom/dev
Browse files Browse the repository at this point in the history
Version 1.5.5
  • Loading branch information
korzh authored Apr 2, 2024
2 parents 2a7a2bb + 424f820 commit 37c1693
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 0 additions & 3 deletions easydata.js/packs/core/src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,6 @@ export namespace i18n {
else if (format == 'u') {
format = buildUniversalDateTimeFormat(dataType);
}
else {
format = buildUniversalDateTimeFormat(dataType);
}
}
else {
format = buildShortDateTimeFormat(dataType);
Expand Down
6 changes: 3 additions & 3 deletions easydata.js/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.5.4",
"baseVersion": "1.5.4",
"assetVersion": "01_05_04",
"version": "1.5.5",
"baseVersion": "1.5.5",
"assetVersion": "01_05_05",
"tag": "latest"
}
5 changes: 5 additions & 0 deletions easydata.net/src/EasyData.Core/DisplayFormatStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public DisplayFormatDescriptor AddOrUpdate(DataType type, string name, string fo
desc = new DisplayFormatDescriptor(name, format);
desc.IsDefault = isDefault;
if (_dict.TryGetValue(type, out var formats)) {
if (isDefault) {
foreach (var fmt in formats) {
fmt.IsDefault = false;
}
}
formats.Add(desc);
}
else {
Expand Down
3 changes: 2 additions & 1 deletion easydata.net/src/EasyData.Core/MetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ protected virtual async Task ReadOneModelPropFromJsonAsync(JsonReader reader, st
await Editors.ReadFromJsonAsync(reader, ct).ConfigureAwait(false);
break;
case "dataFormats":
case "displayFormats":
await reader.ReadAsync(ct).ConfigureAwait(false); //reading StartObject token
await ReadDisplayFormatsFromJsonAsync(reader, ct).ConfigureAwait(false);
break;
Expand All @@ -1071,7 +1072,7 @@ protected async virtual Task ReadDisplayFormatsFromJsonAsync(JsonReader reader,
var formatType = reader.Value.ToString().StrToDataType();

await reader.ReadAsync(ct).ConfigureAwait(false);
if (reader.TokenType != JsonToken.StartArray) {
if (reader.TokenType == JsonToken.StartArray) {
while ((await reader.ReadAsync(ct).ConfigureAwait(false))
&& reader.TokenType != JsonToken.EndArray)
{
Expand Down
6 changes: 3 additions & 3 deletions easydata.net/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"assemblyVersion": "1.5.3.1",
"packageVersion": "1.5.3",
"assetVersion": "01_05_03"
"assemblyVersion": "1.5.5.1",
"packageVersion": "1.5.5",
"assetVersion": "01_05_05"
}

0 comments on commit 37c1693

Please sign in to comment.