This commit is contained in:
parent
eb0e6dd985
commit
5a3094cd70
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue