Skip to content

Commit

Permalink
Show user colors for protected ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Feb 26, 2024
1 parent e2a2a22 commit 83b1335
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ define([
displayName: this.currentUser.name + ' (' + this.textYou + ')',
initials: Common.Utils.getUserInitials(this.currentUser.name),
avatar: '',
usercolor: null,
usercolor: Common.UI.ExternalUsers.getColor(this.currentUser.id),
email: '',
type: Asc.c_oSerUserProtectedRangeType.edit,
isCurrent: true});
Expand All @@ -299,7 +299,7 @@ define([
displayName: name + ' ' + count++,
initials: Common.Utils.getUserInitials(name),
avatar: '',
usercolor: null,
usercolor: Common.UI.ExternalUsers.getColor(item.asc_getId()),
email: '',
type: item.asc_getType()
});
Expand Down Expand Up @@ -374,7 +374,7 @@ define([
displayName: record.displayValue,
initials: Common.Utils.getUserInitials(record.displayValue),
avatar: '',
usercolor: null,
usercolor: Common.UI.ExternalUsers.getColor(value),
email: record.value,
type: Asc.c_oSerUserProtectedRangeType.edit
});
Expand Down

0 comments on commit 83b1335

Please sign in to comment.