fix(entry_summary): get entry.id
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2022-05-09 14:44:30 +02:00
parent f380d5fd28
commit d9055abca9
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<vn-crud-model
vn-id="buysModel"
url="Entries/{{$ctrl.$params.id}}/getBuys"
url="Entries/{{$ctrl.entry.id}}/getBuys"
limit="5"
data="buys"
auto-load="true">

View File

@ -4,6 +4,9 @@ import Summary from 'salix/components/summary';
class Controller extends Summary {
get entry() {
if (!this._entry)
return this.$params;
return this._entry;
}