coer-elements 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
@@ -3451,12 +3451,18 @@ class CoerToolbar {
|
|
3451
3451
|
this.onClickUser = output();
|
3452
3452
|
//computed
|
3453
3453
|
this.userName = computed(() => {
|
3454
|
-
const
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3454
|
+
const user = this.user();
|
3455
|
+
if (Tools.IsNotNull(user)) {
|
3456
|
+
if (Tools.IsNotOnlyWhiteSpace(user?.fullName))
|
3457
|
+
return user?.fullName;
|
3458
|
+
const name = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.name) ? this.user().name : '';
|
3459
|
+
const firstName = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.firstName) ? this.user().firstName : '';
|
3460
|
+
const middleName = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.middleName) ? this.user().middleName : '';
|
3461
|
+
const lastName = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.lastName) ? this.user().lastName : '';
|
3462
|
+
const secondLastName = Tools.IsNotNull(this.user()) && Tools.IsNotOnlyWhiteSpace(this.user()?.secondName) ? this.user().secondLastName : '';
|
3463
|
+
return `${name} ${firstName} ${middleName} ${lastName} ${secondLastName}`;
|
3464
|
+
}
|
3465
|
+
return '';
|
3460
3466
|
});
|
3461
3467
|
//computed
|
3462
3468
|
this.userTitle = computed(() => {
|