improvement: users can now comment on a case and it's details and have an option to make it visible for clinics too.
This commit is contained in:
@@ -97,11 +97,13 @@ export function LabCaseCommentsPanel({
|
||||
{comment.authorSide === 'LAB' ? t('labAuthor') : t('clinicAuthor')}
|
||||
{comment.authorName ? ` · ${comment.authorName}` : ''}
|
||||
</span>
|
||||
{comment.visibleToClinic ? (
|
||||
<span className="text-primary">{t('clinicCanSee')}</span>
|
||||
) : (
|
||||
<span>{t('hiddenFromClinic')}</span>
|
||||
)}
|
||||
{comment.showVisibilityStatus !== false ? (
|
||||
comment.visibleToClinic ? (
|
||||
<span className="text-primary">{t('clinicCanSee')}</span>
|
||||
) : (
|
||||
<span>{t('hiddenFromClinic')}</span>
|
||||
)
|
||||
) : null}
|
||||
</div>
|
||||
<p className="mt-1 text-text-primary whitespace-pre-wrap">{comment.body}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user