This repository was archived by the owner on Feb 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
src/Our.Umbraco.DocTypeGridEditor/Web
UI/App_Plugins/DocTypeGridEditor/Js Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ public object GetContentType([ModelBinder] string contentTypeAlias)
93
93
var contentType = Current . Services . ContentTypeService . Get ( contentTypeAlias ) ;
94
94
return new
95
95
{
96
- icon = contentType != null ? contentType . Icon : string . Empty
96
+ icon = contentType != null ? contentType . Icon : "icon-item-arrangement" ,
97
+ title = contentType != null ? contentType . Name : "Doc Type" ,
98
+ description = contentType != null ? contentType . Description : string . Empty
97
99
} ;
98
100
}
99
101
Original file line number Diff line number Diff line change 34
34
overlayOptions . titles . selectContentType = data [ 2 ] ;
35
35
overlayOptions . titles . selectBlueprint = data [ 3 ] ;
36
36
} ) ;
37
-
38
- $scope . title = overlayOptions . titles . selectContentType ;
39
37
40
38
$scope . setValue = function ( data , callback ) {
41
39
$scope . control . value = data ;
49
47
dtgeResources . getContentType ( $scope . control . value . dtgeContentTypeAlias ) . then ( function ( data2 ) {
50
48
$scope . title = data2 . title ;
51
49
$scope . description = data2 . description ;
52
- if ( data2 . icon ) {
53
- $scope . icon = data2 . icon ;
54
- }
50
+ $scope . icon = data2 . icon ;
55
51
} ) ;
56
52
}
57
53
if ( callback )
Original file line number Diff line number Diff line change 21
21
) ;
22
22
} ,
23
23
getContentType : function ( contentTypeAlias ) {
24
- var url = umbRequestHelper . convertVirtualToAbsolutePath ( "~/umbraco/backoffice/DocTypeGridEditorApi/DocTypeGridEditorApi/GetContentTypeIcon ?contentTypeAlias=" + contentTypeAlias ) ;
24
+ var url = umbRequestHelper . convertVirtualToAbsolutePath ( "~/umbraco/backoffice/DocTypeGridEditorApi/DocTypeGridEditorApi/GetContentType ?contentTypeAlias=" + contentTypeAlias ) ;
25
25
return umbRequestHelper . resourcePromise (
26
26
$http . get ( url ) ,
27
27
'Failed to retrieve content type icon'
You can’t perform that action at this time.
0 commit comments