entry log

This commit is contained in:
Bernat Exposito Domenech 2020-03-02 09:28:08 +01:00
parent 2accd8fa3b
commit 0d23a3894f
5 changed files with 26 additions and 0 deletions

View File

@ -1,6 +1,9 @@
{
"name": "Entry",
"base": "VnModel",
"log": {
"model":"EntryLog"
},
"options": {
"mysql": {
"table": "entry"

View File

@ -6,3 +6,4 @@ import './search-panel';
import './descriptor';
import './card';
import './summary';
import './log';

View File

@ -0,0 +1 @@
<vn-log url="EntryLogs" origin-id="$ctrl.$stateParams.id"></vn-log>

View File

@ -0,0 +1,15 @@
import ngModule from '../module';
class Controller {
constructor($scope, $stateParams) {
this.$scope = $scope;
this.$stateParams = $stateParams;
}
}
Controller.$inject = ['$scope', '$stateParams'];
ngModule.component('vnEntryLog', {
template: require('./index.html'),
controller: Controller,
});

View File

@ -9,6 +9,7 @@
{"state": "entry.index", "icon": "icon-entry"}
],
"card": [
{"state": "travel.card.log", "icon": "history"},
]
},
"routes": [
@ -36,6 +37,11 @@
"params": {
"entry": "$ctrl.entry"
}
}, {
"url" : "/log",
"state": "entry.card.log",
"component": "vn-entry-log",
"description": "Log"
}
]
}