diff --git a/client/production/src/index/index.html b/client/production/src/index/index.html
index d397720bf..268bf0216 100644
--- a/client/production/src/index/index.html
+++ b/client/production/src/index/index.html
@@ -17,14 +17,15 @@
-
-
+
diff --git a/client/production/src/index/index.js b/client/production/src/index/index.js
index a7593c5fd..d19b46dc2 100644
--- a/client/production/src/index/index.js
+++ b/client/production/src/index/index.js
@@ -2,7 +2,7 @@ import ngModule from '../module';
import './style.scss';
export default class ProductionIndex {
- constructor($element, $scope, $http, vnPopover) {
+ constructor($element, $scope, $http, vnPopover, aclConstant) {
this.$element = $element;
this.$ = $scope;
this.$http = $http;
@@ -17,10 +17,8 @@ export default class ProductionIndex {
};
this.hourItems = [];
this.child = undefined;
- this.warehouse = {
- id: 1,
- name: "Silla FV"
- };
+ this.userProfile = aclConstant.userProfile;
+ this.filter.warehouseFk = this.userProfile.warehouseId;
}
// Actions Callbacks
@@ -101,7 +99,7 @@ export default class ProductionIndex {
this.searchTickets();
}
}
-ProductionIndex.$inject = ['$element', '$scope', '$http', 'vnPopover'];
+ProductionIndex.$inject = ['$element', '$scope', '$http', 'vnPopover', 'aclConstant'];
ngModule.component('vnProductionIndex', {
template: require('./index.html'),