File tree Expand file tree Collapse file tree 4 files changed +38
-10
lines changed
src/Umbraco.Cms.Integrations.PIM.Inriver
App_Plugins/UmbracoCms.Integrations/PIM/Inriver Expand file tree Collapse file tree 4 files changed +38
-10
lines changed Original file line number Diff line number Diff line change 59
59
fields : obj . fieldValues . map ( fieldObj => {
60
60
return {
61
61
fieldType : fieldTypes . find ( fieldTypeObj => fieldTypeObj . fieldTypeId === fieldObj . fieldTypeId ) . fieldTypeDisplayName ,
62
- value : fieldObj . value
62
+ value : fieldObj . display
63
63
}
64
64
} )
65
65
}
Original file line number Diff line number Diff line change 4
4
< uui-box headline ="{{model.title}} " class ="inriver-container ">
5
5
< div >
6
6
< uui-icon-registry-essential >
7
- < uui-input id ="inSearch " class ="inriver-search " label ="search "
7
+ < uui-input id ="inSearch " class ="inriver-search " label ="search "
8
8
ng-on-input ="vm.search() " ng-model ="vm.searchTerm "
9
9
placeholder ="Enter a name to search... ">
10
10
< uui-icon style ="padding-left: 10px; " slot ="prepend " name ="search "> </ uui-icon >
11
11
</ uui-input >
12
12
</ uui-icon-registry-essential >
13
13
</ div >
14
- < uui-scroll-container class ="mt2 " style ="width:100% ">
14
+ < uui-scroll-container class ="mt2 " style ="width:100%;height:600px; ">
15
15
< uui-form ng-if ="vm.filteredEntities.length > 0 ">
16
16
< uui-form-layout-item >
17
17
< uui-table class ="uui-text ">
35
35
</ uui-table >
36
36
</ uui-form-layout-item >
37
37
</ uui-form >
38
- < div ng-show ="!vm.loading " class ="inriver-center ">
39
- < uui-pagination > </ uui-pagination >
40
- </ div >
41
38
</ uui-scroll-container >
39
+ < div ng-show ="!vm.loading " class ="inriver-center ">
40
+ < uui-pagination > </ uui-pagination >
41
+ </ div >
42
42
</ uui-box >
43
43
< umb-editor-footer >
44
44
< umb-editor-footer-content-right >
Original file line number Diff line number Diff line change 1
- using System . Text . Json . Serialization ;
1
+ using System . Text . Json ;
2
+ using System . Text . Json . Serialization ;
2
3
3
4
namespace Umbraco . Cms . Integrations . PIM . Inriver . Models
4
5
{
@@ -8,6 +9,33 @@ public class FieldValue
8
9
public string FieldTypeId { get ; set ; }
9
10
10
11
[ JsonPropertyName ( "value" ) ]
11
- public string Value { get ; set ; }
12
+ public object Value { get ; set ; }
13
+
14
+ public Dictionary < string , string > ValueDictionary
15
+ {
16
+ get
17
+ {
18
+ try
19
+ {
20
+ if ( Value == null ) return null ;
21
+
22
+ return JsonSerializer . Deserialize < Dictionary < string , string > > ( Value . ToString ( ) ) ;
23
+ }
24
+ catch { return null ; }
25
+ }
26
+ }
27
+
28
+ public string Display
29
+ {
30
+ get
31
+ {
32
+ if ( ValueDictionary != null )
33
+ {
34
+ return string . Join ( "," , ValueDictionary ) ;
35
+ }
36
+
37
+ return Value ? . ToString ( ) ;
38
+ }
39
+ }
12
40
}
13
41
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ public class InriverEntityViewModel
5
5
{
6
6
public InriverEntityViewModel ( )
7
7
{
8
- Fields = new Dictionary < string , string > ( ) ;
8
+ Fields = new Dictionary < string , object > ( ) ;
9
9
}
10
10
11
11
public int Id { get ; set ; }
@@ -14,6 +14,6 @@ public InriverEntityViewModel()
14
14
15
15
public string DisplayDescription { get ; set ; }
16
16
17
- public Dictionary < string , string > Fields { get ; set ; }
17
+ public Dictionary < string , object > Fields { get ; set ; }
18
18
}
19
19
}
You can’t perform that action at this time.
0 commit comments