mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
fix: response delete in single response card (#1624)
This commit is contained in:
committed by
GitHub
parent
9242ab3a7d
commit
6727ccf1cd
@@ -255,17 +255,15 @@ export default function SingleResponseCard({
|
||||
{timeSince(response.updatedAt.toISOString())}
|
||||
</time>
|
||||
{!isViewer && (
|
||||
<TooltipRenderer
|
||||
shouldRender={isSubmissionFresh || !response.finished}
|
||||
tooltipContent={deleteSubmissionToolTip}>
|
||||
<TooltipRenderer shouldRender={isSubmissionFresh} tooltipContent={deleteSubmissionToolTip}>
|
||||
<TrashIcon
|
||||
onClick={() => {
|
||||
if (!isSubmissionFresh || !response.finished) {
|
||||
if (!isSubmissionFresh) {
|
||||
setDeleteDialogOpen(true);
|
||||
}
|
||||
}}
|
||||
className={`h-4 w-4 ${
|
||||
isSubmissionFresh || !response.finished
|
||||
isSubmissionFresh
|
||||
? "cursor-not-allowed text-gray-400"
|
||||
: "text-slate-500 hover:text-red-700"
|
||||
} `}
|
||||
|
||||
Reference in New Issue
Block a user