From 83b1335c16f14e31fffe0867a217c6e8c9b18fe0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 26 Feb 2024 12:26:16 +0300 Subject: [PATCH] Show user colors for protected ranges --- .../main/app/view/ProtectedRangesEditDlg.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js index c255dd3ed0..c5b8b8633c 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js @@ -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}); @@ -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() }); @@ -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 });