@bizdoc/core 1.13.32 → 1.13.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14624,36 +14624,28 @@ class TraceViewComponent extends TraceBase {
14624
14624
  }
14625
14625
  }
14626
14626
  }
14627
- else {
14628
- if (l.userId === this._session.profile.userId) {
14629
- if (this._session.isImpersonating) {
14630
- if (l.userId === this._session.profile.byId)
14631
- step.name = this._translate.get('ByYou', this._session.profile.name);
14632
- else
14633
- step.name = this._session.profile.name;
14634
- }
14635
- else
14636
- step.name = this._translate.get('You');
14637
- }
14627
+ else if (l.byId) {
14628
+ let who = await profileOf(l.userId);
14629
+ if (l.byId === this._session.profile.byId)
14630
+ step.name = this._translate.get('ByYou', nameOf(who));
14638
14631
  else {
14639
- let who = await profileOf(l.userId);
14640
- if (who.role)
14641
- step.role = who.role;
14642
- if (l.byId) {
14643
- if (l.byId === this._session.profile.byId)
14644
- step.name = this._translate.get('ByYou', nameOf(who));
14645
- else {
14646
- let by = await profileOf(l.byId);
14647
- step.name = this._translate.get('By', nameOf(who), nameOf(by));
14648
- }
14649
- }
14650
- else
14651
- step.name = nameOf(who);
14632
+ let by = await profileOf(l.byId);
14633
+ step.name = this._translate.get('By', nameOf(who), nameOf(by));
14634
+ if (by.role)
14635
+ step.role = by.role;
14652
14636
  }
14653
14637
  }
14638
+ else if (l.userId === this._session.userId)
14639
+ step.name = this._translate.get('You');
14640
+ else {
14641
+ let who = await profileOf(l.userId);
14642
+ step.name = nameOf(who);
14643
+ if (who.role)
14644
+ step.role = who.role;
14645
+ }
14654
14646
  }
14655
14647
  for (let recipient of recipients) {
14656
- if (!recipient.pending && !recipient.estimate && !recipient.fyi)
14648
+ if (!recipient.pending && !recipient.estimate)
14657
14649
  continue;
14658
14650
  let step = {
14659
14651
  time: recipient.received,
@@ -14675,7 +14667,6 @@ class TraceViewComponent extends TraceBase {
14675
14667
  step.durationMin = min,
14676
14668
  step.durationMax = max;
14677
14669
  }
14678
- step.fyi = recipient.fyi;
14679
14670
  }
14680
14671
  }
14681
14672
  if (recipient.substituteId) {