Skip to content

Commit a83e985

Browse files
fix(dashboard): Tiny crate with fixes (#8176)
1 parent 8fa6cc2 commit a83e985

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

apps/dashboard/src/components/activity/activity-logs.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function ActivityLogs({
4141
const queryClient = useQueryClient();
4242
const { currentEnvironment } = useEnvironment();
4343
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
44-
const workflowDeletedExist = !!activity?.template;
44+
const workflowExists = !!activity?.template;
4545

4646
const resentMetadata = {
4747
__resent_transaction_id: activity.transactionId,
@@ -152,20 +152,20 @@ export function ActivityLogs({
152152
<div className="flex items-center justify-between border-b border-neutral-100 p-3">
153153
<h3 className="text-foreground-950 text-sm font-medium">Request payload</h3>
154154
<div className="flex items-center gap-2">
155-
<Button
156-
variant="secondary"
157-
mode="ghost"
158-
size="sm"
159-
onClick={() => handleResend()}
160-
className="text-xs"
161-
disabled={isPending || !workflowDeletedExist}
162-
type="button"
163-
>
164-
<RepeatPlay
165-
className={cn('size-3', isPending || (!workflowDeletedExist && 'text-text-disabled opacity-50'))}
166-
/>
167-
Resend
168-
</Button>
155+
{workflowExists && (
156+
<Button
157+
variant="secondary"
158+
mode="ghost"
159+
size="sm"
160+
onClick={() => handleResend()}
161+
className="text-xs"
162+
disabled={isPending}
163+
type="button"
164+
>
165+
<RepeatPlay className={cn('size-3', { 'text-text-disabled opacity-50': isPending })} />
166+
Resend
167+
</Button>
168+
)}
169169
<PopoverClose asChild ref={popoverCloseRef}>
170170
<CompactButton size="md" variant="ghost" icon={RiCloseFill} type="button">
171171
<span className="sr-only">Close</span>

apps/dashboard/src/components/workflow-editor/steps/email/blocks/digest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const createDigestBlock = (props: {
1313
const maxIterations = 5;
1414

1515
return {
16-
title: 'Digest block',
16+
title: 'Digest',
1717
description: 'Display digested notifications in list.',
1818
searchTerms: ['digest', 'notification'],
1919
icon: <RiShadowLine className="mly-h-4 mly-w-4" />,

apps/dashboard/src/components/workflow-editor/steps/email/maily-config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const getAvailableBlocks = (blocks: BlockGroupItem[], editor: TiptapEditor | nul
137137
const isInsideRepeat = editor && isInsideRepeatBlock(editor);
138138

139139
if (isInsideRepeat) {
140-
const filteredBlocks = ['Repeat', 'Digest block'];
140+
const filteredBlocks = ['Repeat', 'Digest'];
141141

142142
return blocks.map((block) => ({
143143
...block,

0 commit comments

Comments
 (0)