260805_01_ENH: 이메일 템플릿 저장 시 빈 칸 유지, 외부 설문에서 리스트 단건 조회, 리스트 헤더조회, 리스트 단건 수정 기능 사용할수 있도록 api 라우트 생성 및 cors 완화
This commit is contained in:
@@ -205,7 +205,7 @@ const ListContactInfoPanel = ({
|
||||
type="button"
|
||||
variant="outline"
|
||||
className={cn('shrink-0 gap-2', isOnCall && 'bg-accent text-accent-foreground')}
|
||||
disabled={!isCtiReady || isDialing}
|
||||
disabled={isEditing || !isCtiReady || isDialing}
|
||||
title={getCallButtonTitle(isCtiReady, isDialing)}
|
||||
onClick={() => handleCall(value, header.listHderId)}
|
||||
>
|
||||
@@ -216,6 +216,7 @@ const ListContactInfoPanel = ({
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="shrink-0 gap-2"
|
||||
disabled={isEditing}
|
||||
onClick={() => handleSend('sms', header.listHderId)}
|
||||
>
|
||||
<MessageSquare className="h-4 w-4" />
|
||||
@@ -245,6 +246,7 @@ const ListContactInfoPanel = ({
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="shrink-0 gap-2"
|
||||
disabled={isEditing}
|
||||
onClick={() => handleSend('email', header.listHderId)}
|
||||
>
|
||||
<Mail className="h-4 w-4" />
|
||||
@@ -264,7 +266,7 @@ const ListContactInfoPanel = ({
|
||||
<button
|
||||
type="button"
|
||||
className="max-w-full cursor-pointer text-left text-primary hover:text-primary/80 disabled:cursor-wait disabled:opacity-60"
|
||||
disabled={downloadItemFileMutation.isPending}
|
||||
disabled={isEditing || downloadItemFileMutation.isPending}
|
||||
title={value}
|
||||
onClick={() => handleDownloadFile(header.listHderId, value)}
|
||||
>
|
||||
@@ -284,7 +286,7 @@ const ListContactInfoPanel = ({
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="shrink-0 gap-2"
|
||||
disabled={uploadItemFileMutation.isPending}
|
||||
disabled={isEditing || uploadItemFileMutation.isPending}
|
||||
onClick={() => handlePickFile(header.listHderId)}
|
||||
>
|
||||
<Paperclip className="h-4 w-4" />
|
||||
@@ -335,10 +337,10 @@ const ListContactInfoPanel = ({
|
||||
return (
|
||||
<FieldRow key={survey.prjctSurveyIdx ?? survey.surveyOrder} label={survey.surveyName || 'Web'}>
|
||||
<div className="flex items-center gap-2">
|
||||
<Button type="button" className="gap-2" onClick={() => handleStartSurvey(survey)}>
|
||||
<Button type="button" className="gap-2" disabled={isEditing} onClick={() => handleStartSurvey(survey)}>
|
||||
조사 시작
|
||||
</Button>
|
||||
<Button type="button" variant="outline" className="gap-2" onClick={() => handleShowQr(survey)}>
|
||||
<Button type="button" variant="outline" className="gap-2" disabled={isEditing} onClick={() => handleShowQr(survey)}>
|
||||
<QrCode className="h-4 w-4" />
|
||||
QR
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user