fix: refs #6643 fix user link
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-01-08 09:11:44 +01:00
parent 37a13414d1
commit 547ac44e9b
2 changed files with 10 additions and 4 deletions

View File

@ -23,8 +23,8 @@
<vn-td>{{::tracking.state.name}}</vn-td> <vn-td>{{::tracking.state.name}}</vn-td>
<vn-td expand> <vn-td expand>
<span <span
ng-class="{'link': tracking.user.id}" ng-class="{'link': tracking.user.worker}"
ng-click="workerDescriptor.show($event, tracking.user.id)"> ng-click="tracking.user.worker && workerDescriptor.show($event, tracking.user.worker.id)">
{{::tracking.user.name || 'System' | translate}} {{::tracking.user.name || 'System' | translate}}
</span> </span>
</vn-td> </vn-td>

View File

@ -9,7 +9,13 @@ class Controller extends Section {
{ {
relation: 'user', relation: 'user',
scope: { scope: {
fields: ['name'] fields: ['id', 'name'],
include: {
relation: 'worker',
scope: {
fields: ['id']
}
}
} }
}, { }, {
relation: 'state', relation: 'state',