diff --git a/client/client/src/greuge-create/greuge-create.html b/client/client/src/greuge-create/greuge-create.html
index d89891acd..9bc8830dd 100644
--- a/client/client/src/greuge-create/greuge-create.html
+++ b/client/client/src/greuge-create/greuge-create.html
@@ -11,7 +11,7 @@
Add Greuge
-
+
diff --git a/client/client/src/greuge-create/greuge-create.js b/client/client/src/greuge-create/greuge-create.js
index f48c3e61b..f3232f09c 100644
--- a/client/client/src/greuge-create/greuge-create.js
+++ b/client/client/src/greuge-create/greuge-create.js
@@ -1,10 +1,12 @@
import ngModule from '../module';
class ClientGreugeCreate {
- constructor($scope, $state) {
+ constructor($scope, $state, $filter) {
this.$ = $scope;
this.$state = $state;
- this.greuge = {};
+ this.greuge = {
+ shipped: $filter('date')(new Date(), 'yyyy-MM-dd')
+ };
}
onSubmit() {
this.greuge.clientFk = this.$state.params.id;
@@ -15,7 +17,7 @@ class ClientGreugeCreate {
);
}
}
-ClientGreugeCreate.$inject = ['$scope', '$state'];
+ClientGreugeCreate.$inject = ['$scope', '$state', '$filter'];
ngModule.component('vnClientGreugeCreate', {
template: require('./greuge-create.html'),