coer-elements 0.0.81 → 0.0.83

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.
@@ -3460,11 +3460,20 @@ class CoerToolbar {
3460
3460
  });
3461
3461
  //computed
3462
3462
  this.userTitle = computed(() => {
3463
- const position = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.position) ? this.user().position : '';
3464
- const legend = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.legend) ? this.user().legend : '';
3465
- const caption = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.caption) ? this.user().caption : '';
3466
- const title = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.title) ? this.user().title : '';
3467
- return `${position}${legend}${caption}${title}`.trim();
3463
+ const user = this.user();
3464
+ if (Tools.IsNotNull(user)) {
3465
+ if (user?.title)
3466
+ return user.title;
3467
+ if (user?.role)
3468
+ return user.role;
3469
+ if (user?.position)
3470
+ return user.position;
3471
+ if (user?.legend)
3472
+ return user.legend;
3473
+ if (user?.caption)
3474
+ return user.caption;
3475
+ }
3476
+ return '';
3468
3477
  });
3469
3478
  //getter
3470
3479
  this.GetPadding = (container) => {