refs #6033 feat(VnLog): better if
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-09-25 13:24:30 +02:00
parent eb0e6dd985
commit 5a3094cd70
1 changed files with 3 additions and 4 deletions

View File

@ -363,11 +363,10 @@ export default class Controller extends Section {
}
showDescriptor(event, userLog) {
if (this.$state.current.name.split('.')[0] == 'account')
return this.$.accountDescriptor.show(event.target, userLog.userFk);
if (userLog.user?.worker && this.$state.current.name.split('.')[0] != 'account')
return this.$.workerDescriptor.show(event.target, userLog.userFk);
if (userLog.user?.worker)
this.$.workerDescriptor.show(event.target, userLog.userFk);
this.$.accountDescriptor.show(event.target, userLog.userFk);
}
}