Tarea #405 Traducciones

This commit is contained in:
gerard 2018-07-18 14:44:14 +02:00
parent b4ecb82ce3
commit ed63db0af2
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
value="{{$ctrl.order.client.name}}"> value="{{$ctrl.order.client.name}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="State" <vn-label-value label="State"
value="{{$ctrl.order.isConfirmed ? 'Confirmed' : 'Not Confirmed'}}"> value="{{$ctrl.order.isConfirmed ? $ctrl.translate.instant('Confirmed') : $ctrl.translate.instant('Not confirmed')}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Sales person" <vn-label-value label="Sales person"
value="{{$ctrl.order.client.salesPerson.firstName}} {{$ctrl.order.client.salesPerson.name}}"> value="{{$ctrl.order.client.salesPerson.firstName}} {{$ctrl.order.client.salesPerson.name}}">

View File

@ -2,12 +2,12 @@ import ngModule from '../module';
import './style.scss'; import './style.scss';
class Controller { class Controller {
constructor($http) { constructor($translate) {
this.$http = $http; this.translate = $translate;
} }
} }
Controller.$inject = ['$http']; Controller.$inject = ['$translate'];
ngModule.component('vnOrderDescriptor', { ngModule.component('vnOrderDescriptor', {
template: require('./index.html'), template: require('./index.html'),