Skip to content

Commit 076c189

Browse files
authored
fix: Remove readonly notice from shared shat (#7140)
1 parent 44673df commit 076c189

4 files changed

Lines changed: 0 additions & 10 deletions

File tree

apps/chat/src/components/ConversationView/ConversationView.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ interface Props {
7676
initialModelId: string;
7777
streamErrorText: string;
7878
isReadOnly?: boolean;
79-
readOnlyNotice?: string;
8079
onDuplicateConversation?: () => void;
8180
duplicateError?: string;
8281
isTranscriptionSupported?: boolean;
@@ -105,7 +104,6 @@ const ConversationView: FC<Props> = ({
105104
initialModelId,
106105
streamErrorText,
107106
isReadOnly = false,
108-
readOnlyNotice,
109107
onDuplicateConversation,
110108
duplicateError,
111109
isTranscriptionSupported = false,
@@ -387,11 +385,6 @@ const ConversationView: FC<Props> = ({
387385
>
388386
{isReadOnly ? (
389387
<div className="flex flex-col items-center justify-center gap-2 p-4">
390-
{readOnlyNotice && (
391-
<p className="dial-body-regular-text text-secondary">
392-
{readOnlyNotice}
393-
</p>
394-
)}
395388
{duplicateError && (
396389
<DialNotification
397390
variant={NotificationVariant.Error}

apps/chat/src/constants/translation-keys.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export enum ChatI18nKeys {
1515
StopStreaming = 'chat.stopStreaming',
1616
QuickReplyButtons = 'chat.quickReplyButtons',
1717
StoppedGenerating = 'chat.stoppedGenerating',
18-
ReadOnlyNotice = 'chat.readOnlyNotice',
1918
Thinking = 'chat.thinking',
2019
ShowMoreUserMessage = 'chat.showMoreUserMessage',
2120
ShowLessUserMessage = 'chat.showLessUserMessage',

apps/chat/src/i18n/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"stopStreaming": "Stop streaming",
2424
"quickReplyButtons": "Quick reply buttons",
2525
"stoppedGenerating": "You stopped generating the response",
26-
"readOnlyNotice": "Only own conversations can be edited",
2726
"thinking": "Thinking",
2827
"showMoreUserMessage": "Show full user message",
2928
"showLessUserMessage": "Collapse user message"

apps/chat/src/pages/Conversation/Conversation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ export const ConversationPage: FC = () => {
280280
isReadOnly={isReadOnly}
281281
onDuplicateConversation={handleDuplicateConversation}
282282
duplicateError={duplicateError ?? undefined}
283-
readOnlyNotice={t(ChatI18nKeys.ReadOnlyNotice)}
284283
isTranscriptionSupported={isTranscriptionSupported}
285284
onUploadAudio={handleUploadAudio}
286285
onTranscribeAudio={handleTranscribeAudio}

0 commit comments

Comments
 (0)