Skip to content

Commit

Permalink
Use umb-icon component in listview dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored and nathanwoulfe committed Apr 28, 2021
1 parent 349c5ac commit 727be42
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<umb-dropdown ng-if="page.createDropdownOpen" on-close="page.createDropdownOpen = false">
<umb-dropdown-item ng-repeat="contentType in listViewAllowedTypes track by contentType.key | orderBy:'name':false">
<button type="button" ng-click="createBlank(entityType,contentType.alias)">
<i class="{{::contentType.icon}}" aria-hidden="true"></i>
<umb-icon icon="{{::contentType.icon}}" class="{{::contentType.icon}}"></umb-icon>
{{::contentType.name}} <span ng-show="contentType.blueprints" style="text-transform: lowercase;">(<localize key="blueprints_blankBlueprint">blank</localize>)</span>
</button>

<button type="button" ng-repeat="blueprint in contentType.blueprints track by blueprint.id | orderBy:'name':false" ng-click="createFromBlueprint(entityType, contentType.alias, blueprint.id)">
&nbsp;&nbsp;<i class="{{::contentType.icon}}" aria-hidden="true"></i>
&nbsp;&nbsp;<umb-icon icon="{{::contentType.icon}}" class="{{::contentType.icon}}"></umb-icon>
{{::blueprint.name}}
</button>
</umb-dropdown-item>
Expand All @@ -53,12 +53,12 @@
<umb-dropdown ng-if="page.createDropdownOpen" on-close="page.createDropdownOpen = false">
<umb-dropdown-item ng-repeat="contentType in listViewAllowedTypes track by contentType.key | orderBy:'name':false">
<button type="button" ng-click="createBlank(entityType,contentType.alias)">
<i class="{{::contentType.icon}}" aria-hidden="true"></i>
<umb-icon icon="{{::contentType.icon}}" class="{{::contentType.icon}}"></umb-icon>
{{::contentType.name}} <span ng-show="contentType.blueprints" style="text-transform: lowercase;">(<localize key="blueprints_blankBlueprint">blank</localize>)</span>
</button>

<button type="button" ng-repeat="blueprint in contentType.blueprints track by blueprint.id | orderBy:'name':false" ng-click="createFromBlueprint(entityType, contentType.alias, blueprint.id)">
&nbsp;&nbsp;<i class="{{::contentType.icon}}" aria-hidden="true"></i>
&nbsp;&nbsp;<umb-icon icon="{{::contentType.icon}}" class="{{::contentType.icon}}"></umb-icon>
{{::blueprint.name}}
</button>
</umb-dropdown-item>
Expand All @@ -69,7 +69,7 @@

<li ng-repeat="blueprint in docType.blueprints track by blueprint.id | orderBy:'name':false">
<button type="button" ng-click="createFromBlueprint(blueprint.id)">
<i class="large {{docType.icon}}" aria-hidden="true"></i>
<umb-icon icon="{{docType.icon}}" class="{{docType.icon}} large"></umb-icon>
<span class="menu-label">
{{blueprint.name}}&nbsp;
</span>
Expand All @@ -78,7 +78,7 @@

<li class="sep" ng-show="allowBlank">
<button type="button" ng-click="createBlank(docType)">
<i class="large {{docType.icon}}" aria-hidden="true"></i>
<umb-icon icon="{{docType.icon}}" class="{{docType.icon}} large"></umb-icon>
<span class="menu-label">
<localize key="blueprints_blankBlueprint">Blank</localize>
</span>
Expand Down

0 comments on commit 727be42

Please sign in to comment.