Bug #660 el catalogo deberia de estar deshabilitado

This commit is contained in:
gerard 2018-09-18 09:37:54 +02:00
parent 18fe2e16af
commit babadbb4f3
2 changed files with 25 additions and 17 deletions

View File

@ -2,9 +2,9 @@ import ngModule from '../module';
import './style.scss'; import './style.scss';
class Controller { class Controller {
constructor($scope, $stateParams, $translate) { constructor($scope, $state, $translate) {
this.$scope = $scope; this.$scope = $scope;
this.$stateParams = $stateParams; this.$state = $state;
this.orderList = [ this.orderList = [
{ {
order: 'relevancy DESC, name', order: 'relevancy DESC, name',
@ -54,9 +54,15 @@ class Controller {
onDescriptorLoad() { onDescriptorLoad() {
this.$scope.popover.relocate(); this.$scope.popover.relocate();
} }
$onChanges() {
if (this.order && this.order.isConfirmed) {
this.$state.go('order.card.line');
}
}
} }
Controller.$inject = ['$scope', '$stateParams', '$translate']; Controller.$inject = ['$scope', '$state', '$translate'];
ngModule.component('vnOrderCatalog', { ngModule.component('vnOrderCatalog', {
template: require('./index.html'), template: require('./index.html'),

View File

@ -1,5 +1,6 @@
@import "colors"; @import "colors";
vn-order-catalog {
.catalog-header { .catalog-header {
border-color: $lines; border-color: $lines;
border-bottom: 1px solid rgba($lines, 0.5); border-bottom: 1px solid rgba($lines, 0.5);
@ -16,3 +17,4 @@
color: $secondary-font-color color: $secondary-font-color
} }
} }
}