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';
class Controller {
constructor($scope, $stateParams, $translate) {
constructor($scope, $state, $translate) {
this.$scope = $scope;
this.$stateParams = $stateParams;
this.$state = $state;
this.orderList = [
{
order: 'relevancy DESC, name',
@ -54,9 +54,15 @@ class Controller {
onDescriptorLoad() {
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', {
template: require('./index.html'),

View File

@ -1,18 +1,20 @@
@import "colors";
.catalog-header {
border-color: $lines;
border-bottom: 1px solid rgba($lines, 0.5);
vn-one:first-child {
padding-top: 2em;
}
vn-one:nth-child(2) {
padding-top: 0.5em;
}
span {
color: $secondary-font-color
vn-order-catalog {
.catalog-header {
border-color: $lines;
border-bottom: 1px solid rgba($lines, 0.5);
vn-one:first-child {
padding-top: 2em;
}
vn-one:nth-child(2) {
padding-top: 0.5em;
}
span {
color: $secondary-font-color
}
}
}