Merge pull request #2586 from bjarnef/dev-v7-U4-11215

U4-11215 - Fix icons in member create dialog
This commit is contained in:
Sebastiaan Janssen
2018-04-15 22:11:24 +02:00
committed by GitHub
5 changed files with 35 additions and 27 deletions

View File

@@ -122,6 +122,18 @@ function mediaTypeResource($q, $http, umbRequestHelper, umbDataFormatter) {
'Failed to delete content type contaier');
},
/**
* @ngdoc method
* @name umbraco.resources.mediaTypeResource#save
* @methodOf umbraco.resources.mediaTypeResource
*
* @description
* Saves or update a media type
*
* @param {Object} content data type object to create/update
* @returns {Promise} resourcePromise object.
*
*/
save: function (contentType) {
var saveModel = umbDataFormatter.formatContentTypePostData(contentType);

View File

@@ -86,8 +86,8 @@ function memberTypeResource($q, $http, umbRequestHelper, umbDataFormatter) {
/**
* @ngdoc method
* @name umbraco.resources.contentTypeResource#save
* @methodOf umbraco.resources.contentTypeResource
* @name umbraco.resources.memberTypeResource#save
* @methodOf umbraco.resources.memberTypeResource
*
* @description
* Saves or update a member type

View File

@@ -16,24 +16,23 @@
<i class="large {{docType.icon}}"></i>
<span class="menu-label">
{{docType.name}}
<small>
{{docType.description}}
</small>
<small>{{docType.description}}</small>
</span>
</a>
</li>
<!--
<li class="add">
<a href="#settings/documenttype/create/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="icon-large icon-plus"></i>
<span class="menu-label">
Create a new media type
<small>
Design and configure a new media type
</small>
</span>
</a>
</li> -->
<!--
<li class="add">
<a href="#settings/documenttype/create/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="icon-large icon-plus"></i>
<span class="menu-label">
Create a new media type
<small>
Design and configure a new media type
</small>
</span>
</a>
</li>
-->
</ul>
</li>
</ul>

View File

@@ -6,10 +6,9 @@
<li ng-repeat="docType in allowedTypes">
<a href="#member/member/edit/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="large icon-users"></i>
<span class="menu-label">{{docType.name}}
<i class="large {{docType.icon}}"></i>
<span class="menu-label">
{{docType.name}}
<small>{{docType.description}}</small>
</span>
</a>
@@ -24,4 +23,3 @@
<localize key="buttons_somethingElse">Do something else</localize>
</button>
</div>

View File

@@ -81,7 +81,7 @@ namespace Umbraco.Web.Editors
}
/// <summary>
/// Deletes a document type wth a given ID
/// Deletes a media type with a given ID
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
@@ -138,17 +138,16 @@ namespace Umbraco.Web.Editors
/// <summary>
/// Returns all member types
/// Returns all media types
/// </summary>
public IEnumerable<ContentTypeBasic> GetAll()
{
return Services.ContentTypeService.GetAllMediaTypes()
.Select(Mapper.Map<IMediaType, ContentTypeBasic>);
}
/// <summary>
/// Deletes a document type container wth a given ID
/// Deletes a media type container wth a given ID
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
@@ -324,4 +323,4 @@ namespace Umbraco.Web.Editors
doCopy: (type, i) => Services.ContentTypeService.CopyMediaType(type, i));
}
}
}
}