#1660 ticket.log si el usuario es un cliente falla
This commit is contained in:
parent
26be791cf0
commit
cef28307d0
|
@ -31,10 +31,9 @@
|
|||
<div>
|
||||
<span translate class="label">Changed by</span><span class="label">: </span>
|
||||
<span
|
||||
class="link"
|
||||
ng-class="{'link': log.user.worker.id, 'value': !log.user.worker.id}"
|
||||
ng-click="$ctrl.showWorkerDescriptor($event, log.user.worker.id)"
|
||||
translate
|
||||
class="value">{{::log.user.name | dashIfEmpty}}
|
||||
translate>{{::log.user.name | dashIfEmpty}}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -53,10 +52,9 @@
|
|||
</vn-td>
|
||||
<vn-td class="expendable">
|
||||
<span
|
||||
class="link"
|
||||
ng-class="{'link': log.user.worker.id, 'value': !log.user.worker.id}"
|
||||
ng-click="$ctrl.showWorkerDescriptor($event, log.user.worker.id)"
|
||||
translate
|
||||
class="value">{{::log.user.name | dashIfEmpty}}
|
||||
translate>{{::log.user.name | dashIfEmpty}}
|
||||
</span>
|
||||
</vn-td>
|
||||
<vn-td class="expendable">
|
||||
|
|
|
@ -43,6 +43,7 @@ export default class Controller {
|
|||
|
||||
showWorkerDescriptor(event, workerFk) {
|
||||
if (event.defaultPrevented) return;
|
||||
if (!workerFk) return;
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
Loading…
Reference in New Issue