fixed bugs in recovery

This commit is contained in:
gerard 2018-05-24 16:02:54 +02:00
parent c512faf45c
commit fe27f0e44f
3 changed files with 6 additions and 6 deletions

View File

@ -13,14 +13,14 @@
vn-one
label="Since"
model="$ctrl.recovery.started"
ini-options="{dateFormat: 'd-m-Y'}"
vn-focus>
vn-focus
ini-options="{enableTime: true}">
</vn-date-picker>
<vn-date-picker
vn-one
label="To"
model="$ctrl.recovery.finished"
ini-options="{dateFormat: 'd-m-Y'}">
ini-options="{enableTime: true}">
</vn-date-picker>
<vn-textfield
vn-one

View File

@ -5,7 +5,7 @@ class Controller {
this.$ = $scope;
this.$state = $state;
this.recovery = {
started: $filter('date')(new Date(), 'yyyy-MM-dd HH:mm')
started: new Date()
};
}
onSubmit() {

View File

@ -14,14 +14,14 @@
vn-one class="list list-element text-center"
pad-small-bottom
ng-repeat="recovery in index.model.instances track by $index">
<vn-none pad-medium-h style="color:#FFA410;">
<vn-none pad-medium-h orange>
<i class="material-icons pointer"
vn-tooltip="Finish that recovery period"
ng-if="!recovery.finished"
ng-click="$ctrl.setFinished(recovery)">lock</i>
</vn-none>
<vn-one pad-medium-h>{{::recovery.started | date:'dd/MM/yyyy' }}</vn-one>
<vn-one pad-medium-h>{{recovery.finished | date:'dd/MM/yyyy' }}</vn-one>
<vn-one pad-medium-h>{{::recovery.finished | date:'dd/MM/yyyy' }}</vn-one>
<vn-one pad-medium-h>{{::recovery.amount | currency:'€':0}}</vn-one>
<vn-one pad-medium-h>{{::recovery.period}}</vn-one>
</vn-horizontal>