Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions frontend/src/components/FeedbackMetricsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default function FeedbackMetricsWidget() {
csat_score: csat,
ces_score: ces,
comment: comment.trim() || null,
page: window.location.pathname,
},
]);

Expand Down Expand Up @@ -97,8 +96,8 @@ export default function FeedbackMetricsWidget() {
onChange={(e) => setComment(e.target.value)}
/>

<button className="btn-primary" onClick={submitFeedback}>
Отправить
<button className="btn-primary" onClick={submitFeedback} disabled={isSubmitting}>
{isSubmitting ? 'Отправка...' : 'Отправить'}
</button>

{message && (
Expand All @@ -109,8 +108,12 @@ export default function FeedbackMetricsWidget() {
</div>
)}

<button className="btn-primary" onClick={submitFeedback} disabled={isSubmitting}>
{isSubmitting ? 'Отправка...' : 'Отправить'}
<button
className="feedback-toggle"
type="button"
onClick={() => setIsOpen((value) => !value)}
>
{isOpen ? 'Закрыть' : 'Оценить'}
</button>
</div>
);
Expand Down
Loading