Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(tasks): no delete prop btn in composer (#2873)

Seamusb90b4e1c24c3
diff --git a/js/app/packages/block-md/component/ComposeTask.tsx b/js/app/packages/block-md/component/ComposeTask.tsx
index a68164044c..d67fab8700 100644
--- a/js/app/packages/block-md/component/ComposeTask.tsx
+++ b/js/app/packages/block-md/component/ComposeTask.tsx
@@ -670,6 +670,8 @@ export function ComposeTask(props: ComposeTaskProps) {
<PropertyGrid
properties={properties()}
columns={2}
+ withDelete={false}
+ withPin={false}
></PropertyGrid>
<Modals />
</div>
diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
index 804f49f7ed..3bc9b17929 100644
--- a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
+++ b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx
@@ -8,6 +8,8 @@ import { PropertyRow } from './PropertyRow';
interface PropertiesListProps {
properties: Property[];
columns?: number;
+ withDelete?: boolean;
+ withPin?: boolean;
}
export const PropertyGrid: Component<PropertiesListProps> = (props) => {
@@ -86,7 +88,6 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {
<PropertyRow
property={property}
onValueClick={handleValueClick}
- withDelete
withPin
/>
)}
@@ -100,7 +101,6 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {
<PropertyRow
property={property}
onValueClick={handleValueClick}
- withDelete
withPin
/>
)}
@@ -119,8 +119,8 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {
<PropertyRow
property={property}
onValueClick={handleValueClick}
- withDelete
- withPin
+ withDelete={props.withDelete}
+ withPin={props.withPin}
/>
)}
</For>