diff --git a/client/client/src/descriptor/index.html b/client/client/src/descriptor/index.html index a9f8dd47e8..691565b58e 100644 --- a/client/client/src/descriptor/index.html +++ b/client/client/src/descriptor/index.html @@ -26,7 +26,7 @@ value="{{$ctrl.client.salesPerson.firstName}} {{$ctrl.client.salesPerson.name}}"> - + + + + + \ No newline at end of file diff --git a/client/client/src/descriptor/index.js b/client/client/src/descriptor/index.js index 7dfb443478..ab471a998e 100644 --- a/client/client/src/descriptor/index.js +++ b/client/client/src/descriptor/index.js @@ -1,7 +1,8 @@ import ngModule from '../module'; class Controller { - constructor($http) { + constructor($http, $state) { + this.$state = $state; this.$http = $http; } _getClientDebt(clientFk) { @@ -18,6 +19,10 @@ class Controller { }); } + goToClientTickets() { + this.$state.go('ticket.index', {q: `{"clientFk": ${this.client.id}}`}); + } + $onChanges(changes) { if (changes.client && this.client) { this._getClient(this.client.id); @@ -26,7 +31,7 @@ class Controller { } } -Controller.$inject = ['$http']; +Controller.$inject = ['$http', '$state']; ngModule.component('vnClientDescriptor', { template: require('./index.html'), diff --git a/client/client/src/locale/es.yml b/client/client/src/locale/es.yml index 9fc7fbdb37..9c83283707 100644 --- a/client/client/src/locale/es.yml +++ b/client/client/src/locale/es.yml @@ -25,4 +25,5 @@ Credit : Crédito Credit contracts: Contratos de crédito Verified data: Datos comprobados Mandate: Mandato -Remove contact: Eliminar \ No newline at end of file +Remove contact: Eliminar +Client ticket list: Listado de tickets del cliente \ No newline at end of file diff --git a/client/salix/src/styles/misc.scss b/client/salix/src/styles/misc.scss index f94ddb8bdb..bce8fe1df9 100644 --- a/client/salix/src/styles/misc.scss +++ b/client/salix/src/styles/misc.scss @@ -184,6 +184,25 @@ vn-main-block { opacity: 1; } } + + .buttons { + justify-content: center; + align-items: center; + + & > a { + background-color: $main-01; + @extend %clickable; + display: flex; + align-items: center; + padding: .5em; + color: white; + text-decoration: none; + + & > vn-icon { + font-size: 1.8em; + } + } + } } .vn-list {