diff --git a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx index 196254619..88d292522 100644 --- a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx +++ b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx @@ -23,6 +23,7 @@ import { actionActions, useActionByIndex } from "~/store/action" type Action = { title: string + icon: React.ReactNode config?: () => React.ReactNode configInline?: boolean enabled: boolean @@ -73,6 +74,7 @@ export const TargetActionList = ({ index }: { index: number }) => { () => [ { title: t("actions.action_card.generate_summary"), + icon: , enabled: !!summary, onInit: (data) => { data.result.summary = true @@ -83,6 +85,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.translate_into"), + icon: , enabled: !!translation, onInit: (data) => { data.result.translation = true @@ -93,6 +96,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.enable_readability"), + icon: , enabled: !!readability, onInit: (data) => { data.result.readability = true @@ -103,6 +107,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.source_content"), + icon: , enabled: !!sourceContent, onInit: (data) => { data.result.sourceContent = true @@ -113,6 +118,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.new_entry_notification"), + icon: , enabled: !!newEntryNotification, onInit: (data) => { data.result.newEntryNotification = true @@ -123,6 +129,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.silence"), + icon: , enabled: !!silence, onInit: (data) => { data.result.silence = true @@ -133,6 +140,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.block"), + icon: , enabled: !!block, onInit: (data) => { data.result.block = true @@ -143,6 +151,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.rewrite_rules"), + icon: , enabled: !!rewriteRules, onInit: (data) => { data.result.rewriteRules = [ @@ -226,6 +235,7 @@ export const TargetActionList = ({ index }: { index: number }) => { }, { title: t("actions.action_card.webhooks"), + icon: , enabled: !!webhooks, onInit: (data) => { data.result.webhooks = [""] @@ -324,7 +334,10 @@ export const TargetActionList = ({ index }: { index: number }) => { }) }} > - {action.title} +