Skip to content

Commit

Permalink
remove attachement btn at deal isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslyl committed Jan 13, 2025
1 parent fa0e1e4 commit 4716ceb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/experiments-realm/crm/deal.gts
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ class IsolatedTemplate extends Component<typeof Deal> {
return null;
}

@action
viewDocument(id: string | undefined) {
if (id && this.args.context?.actions?.viewCard) {
this.args.context.actions.viewCard(new URL(id));
} else {
console.warn('Card opening functionality is not available here.');
}
}

<template>
<DealPageLayout>
<:header>
Expand Down Expand Up @@ -296,18 +287,6 @@ class IsolatedTemplate extends Component<typeof Deal> {
<Info class='info-icon' />
</:icon>
</EntityDisplayWithIcon>

{{#if @model.document}}
<BoxelButton
@as='button'
@size='extra-small'
@kind='secondary-light'
class='view-document-btn'
{{on 'click' (fn this.viewDocument @model.document.id)}}
>
View Attachment
</BoxelButton>
{{/if}}
</div>
<div class='description content-container'>
{{#if @model.notes}}
Expand Down

0 comments on commit 4716ceb

Please sign in to comment.