style bug fixed in descriptor

This commit is contained in:
Daniel Herrero 2017-12-14 13:29:18 +01:00
parent 34953e3a71
commit c9ff880591
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<vn-card margin-large-v> <vn-card margin-medium-v>
<vn-vertical> <vn-vertical>
<vn-auto class="descriptor-header pointer" ui-sref="clients"> <vn-auto class="descriptor-header pointer" ui-sref="clients">
<i class="material-icons">person</i> <i class="material-icons">person</i>
@ -8,7 +8,7 @@
<vn-horizontal ng-repeat="(field, title) in $ctrl.fieldsToShow" ng-if="$ctrl.client[field]"> <vn-horizontal ng-repeat="(field, title) in $ctrl.fieldsToShow" ng-if="$ctrl.client[field]">
<strong vn-auto>{{::title}}:</strong> <strong vn-auto>{{::title}}:</strong>
<vn-auto margin-small-left> <vn-auto margin-small-left>
<span ng-if="field.includes('credit')">{{::$ctrl.client[field] | number:2}} €</span> <span ng-if="field.includes('credit')">{{$ctrl.client[field] | number:2}} €</span>
<span ng-if="!field.includes('credit')">{{::$ctrl.client[field]}}</span> <span ng-if="!field.includes('credit')">{{::$ctrl.client[field]}}</span>
</vn-auto> </vn-auto>
</vn-horizontal> </vn-horizontal>

View File

@ -21,8 +21,7 @@ export default class Controller {
}); });
} }
} }
Controller.$inject = [ Controller.$inject = ['$translate'];
'$translate'];
ngModule.component('vnDescriptor', { ngModule.component('vnDescriptor', {
template: require('./descriptor.html'), template: require('./descriptor.html'),