rename src and srcset attr on umb-avatar

This commit is contained in:
Mads Rasmussen
2016-06-29 10:47:24 +02:00
parent e2826e36ef
commit 0ede94e0f9
4 changed files with 10 additions and 10 deletions

View File

@@ -13,8 +13,8 @@ Use this directive to render an avatar.
<umb-avatar
size="xs"
src="{{vm.avatar[0].value}}"
srcset="{{vm.avatar[1].value}} 2x, {{vm.avatar[2].value}} 3x">
img-src="{{vm.avatar[0].value}}"
img-srcset="{{vm.avatar[1].value}} 2x, {{vm.avatar[2].value}} 3x">
</umb-avatar>
</div>
@@ -43,8 +43,8 @@ Use this directive to render an avatar.
</pre>
@param {string} size (<code>attribute</code>): The size of the avatar (xs, s, m, l, xl).
@param {string} src (<code>attribute</code>): The image source to the avatar.
@param {string} srcset (<code>atribute</code>): Reponsive support for the image source.
@param {string} img-src (<code>attribute</code>): The image source to the avatar.
@param {string} img-srcset (<code>atribute</code>): Reponsive support for the image source.
**/
(function() {
@@ -58,8 +58,8 @@ Use this directive to render an avatar.
templateUrl: 'views/components/umb-avatar.html',
scope: {
size: "@",
src: "@",
srcset: "@"
imgSrc: "@",
imgSrcset: "@"
}
};

View File

@@ -5,8 +5,8 @@
<a href="#" ng-click="avatarClick()" hotkey="ctrl+shift+u" title="{{user.name}}" prevent-default>
<umb-avatar
size="xs"
src="{{avatar[0].value}}"
srcset="{{avatar[1].value}} 2x, {{avatar[2].value}} 3x">
img-src="{{avatar[0].value}}"
img-srcset="{{avatar[1].value}} 2x, {{avatar[2].value}} 3x">
</umb-avatar>
</a>
</li>

View File

@@ -1 +1 @@
<img class="umb-avatar -{{size}}" ng-src="{{src}}" ng-srcset="{{srcset}}" />
<img class="umb-avatar -{{size}}" ng-src="{{imgSrc}}" ng-srcset="{{imgSrcset}}" />

View File

@@ -162,7 +162,7 @@
<div class="umb-package-details__owner-profile-avatar">
<umb-avatar
size="m"
src="{{ 'https://our.umbraco.org' + vm.package.ownerInfo.ownerAvatar }}">
img-src="{{ 'https://our.umbraco.org' + vm.package.ownerInfo.ownerAvatar }}">
</umb-avatar>
</div>