Skip to content

Commit fdb3e2d

Browse files
author
FalkWolsky
committed
Fixing Support Comment Chat
1 parent 83eec96 commit fdb3e2d

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,6 +3378,7 @@ export const en = {
33783378
},
33793379

33803380
"support" : {
3381+
"selfUser" : "You",
33813382
"supportTitle": "Lowcoder Support",
33823383
"supportContent": "If you have any questions or need help, please use the ticket system get your issue solved fast.",
33833384
"newSupportTicket": "New Support Ticket",

client/packages/lowcoder/src/pages/support/supportDetail.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import remarkGfm from 'remark-gfm';
1515
import { contrastColor } from "comps/controls/styleControlConstants";
1616
import ReactQuill from 'react-quill';
1717
import 'react-quill/dist/quill.snow.css';
18+
import { useCurrentUser } from "util/currentUser";
1819

1920
const { Title, Text } = Typography;
2021
const { TextArea } = Input;
@@ -270,7 +271,7 @@ export function SupportDetail() {
270271
const [isAddingComment, setIsAddingComment] = useState<boolean>(false);
271272
const [isUploading, setIsUploading] = useState<boolean>(false);
272273
const [fileList, setFileList] = useState<any[]>([]);
273-
274+
const user = useCurrentUser();
274275

275276
// State for description edit
276277
const [isEditingDescription, setIsEditingDescription] = useState<boolean>(false);
@@ -538,8 +539,8 @@ export function SupportDetail() {
538539
renderItem={(comment: any) => (
539540
<List.Item>
540541
<List.Item.Meta
541-
avatar={<Avatar src={comment.author.avatarUrls['48x48']} />}
542-
title={comment.author.displayName}
542+
avatar={<Avatar src={comment.author.accountId == "712020:a25c863c-bd24-456e-aa3f-2335c18e0235" ? user.avatarUrl : comment.author.avatarUrls['48x48']} />}
543+
title={comment.author.accountId == "712020:a25c863c-bd24-456e-aa3f-2335c18e0235" ? trans("support.selfUser") : comment.author.displayName}
543544
description={
544545
<>
545546
<div>

server/node-service/yarn.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4946,8 +4946,8 @@ __metadata:
49464946
linkType: hard
49474947

49484948
"ali-oss@npm:^6.20.0":
4949-
version: 6.21.0
4950-
resolution: "ali-oss@npm:6.21.0"
4949+
version: 6.22.0
4950+
resolution: "ali-oss@npm:6.22.0"
49514951
dependencies:
49524952
address: ^1.2.2
49534953
agentkeepalive: ^3.4.1
@@ -4974,7 +4974,7 @@ __metadata:
49744974
urllib: ^2.44.0
49754975
utility: ^1.18.0
49764976
xml2js: ^0.6.2
4977-
checksum: 26424e96c4a927e08d6aa9480a0f9db6da00b0188a7a45672f3244344f5cf6ff81aee72a8e46dcd240c98f168d09e2853ac84ae9e5764bc673b4d959a11a5e51
4977+
checksum: 7120edb25dc92311b25a9dd782b7482a4a6d835a5cf212a6f57f6d3df153f9e09a6317a8b2bedad04b7e343a8e1be057bc032779ec06ef6df353f2a02cdf235c
49784978
languageName: node
49794979
linkType: hard
49804980

@@ -5890,25 +5890,25 @@ __metadata:
58905890
languageName: node
58915891
linkType: hard
58925892

5893-
"cross-spawn@npm:^7.0.0":
5894-
version: 7.0.6
5895-
resolution: "cross-spawn@npm:7.0.6"
5893+
"cross-spawn@npm:^7.0.3":
5894+
version: 7.0.3
5895+
resolution: "cross-spawn@npm:7.0.3"
58965896
dependencies:
58975897
path-key: ^3.1.0
58985898
shebang-command: ^2.0.0
58995899
which: ^2.0.1
5900-
checksum: 8d306efacaf6f3f60e0224c287664093fa9185680b2d195852ba9a863f85d02dcc737094c6e512175f8ee0161f9b87c73c6826034c2422e39de7d6569cf4503b
5900+
checksum: 671cc7c7288c3a8406f3c69a3ae2fc85555c04169e9d611def9a675635472614f1c0ed0ef80955d5b6d4e724f6ced67f0ad1bb006c2ea643488fcfef994d7f52
59015901
languageName: node
59025902
linkType: hard
59035903

5904-
"cross-spawn@npm:^7.0.3":
5905-
version: 7.0.3
5906-
resolution: "cross-spawn@npm:7.0.3"
5904+
"cross-spawn@npm:^7.0.6":
5905+
version: 7.0.6
5906+
resolution: "cross-spawn@npm:7.0.6"
59075907
dependencies:
59085908
path-key: ^3.1.0
59095909
shebang-command: ^2.0.0
59105910
which: ^2.0.1
5911-
checksum: 671cc7c7288c3a8406f3c69a3ae2fc85555c04169e9d611def9a675635472614f1c0ed0ef80955d5b6d4e724f6ced67f0ad1bb006c2ea643488fcfef994d7f52
5911+
checksum: 8d306efacaf6f3f60e0224c287664093fa9185680b2d195852ba9a863f85d02dcc737094c6e512175f8ee0161f9b87c73c6826034c2422e39de7d6569cf4503b
59125912
languageName: node
59135913
linkType: hard
59145914

@@ -6735,12 +6735,12 @@ __metadata:
67356735
linkType: hard
67366736

67376737
"foreground-child@npm:^3.1.0":
6738-
version: 3.3.0
6739-
resolution: "foreground-child@npm:3.3.0"
6738+
version: 3.3.1
6739+
resolution: "foreground-child@npm:3.3.1"
67406740
dependencies:
6741-
cross-spawn: ^7.0.0
6741+
cross-spawn: ^7.0.6
67426742
signal-exit: ^4.0.1
6743-
checksum: 1989698488f725b05b26bc9afc8a08f08ec41807cd7b92ad85d96004ddf8243fd3e79486b8348c64a3011ae5cc2c9f0936af989e1f28339805d8bc178a75b451
6743+
checksum: b2c1a6fc0bf0233d645d9fefdfa999abf37db1b33e5dab172b3cbfb0662b88bfbd2c9e7ab853533d199050ec6b65c03fcf078fc212d26e4990220e98c6930eef
67446744
languageName: node
67456745
linkType: hard
67466746

@@ -8931,8 +8931,8 @@ __metadata:
89318931
linkType: hard
89328932

89338933
"minipass-fetch@npm:^4.0.0":
8934-
version: 4.0.0
8935-
resolution: "minipass-fetch@npm:4.0.0"
8934+
version: 4.0.1
8935+
resolution: "minipass-fetch@npm:4.0.1"
89368936
dependencies:
89378937
encoding: ^0.1.13
89388938
minipass: ^7.0.3
@@ -8941,7 +8941,7 @@ __metadata:
89418941
dependenciesMeta:
89428942
encoding:
89438943
optional: true
8944-
checksum: 7d59a31011ab9e4d1af6562dd4c4440e425b2baf4c5edbdd2e22fb25a88629e1cdceca39953ff209da504a46021df520f18fd9a519f36efae4750ff724ddadea
8944+
checksum: 3dfca705ce887ca9ff14d73e8d8593996dea1a1ecd8101fdbb9c10549d1f9670bc8fb66ad0192769ead4c2dc01b4f9ca1cf567ded365adff17827a303b948140
89458945
languageName: node
89468946
linkType: hard
89478947

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy