Skip to content

Commit 5aa449b

Browse files
committed
Remove unnecessary disabled
1 parent 22723e3 commit 5aa449b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

packages/host/app/components/ai-assistant/attachment-picker/index.gts

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { restartableTask } from 'ember-concurrency';
88
import { TrackedSet } from 'tracked-built-ins';
99

1010
import { AddButton, Tooltip, Pill } from '@cardstack/boxel-ui/components';
11-
import { and, cn, eq, gt, not, or } from '@cardstack/boxel-ui/helpers';
11+
import { and, cn, eq, gt, not } from '@cardstack/boxel-ui/helpers';
1212

1313
import {
1414
chooseCard,
@@ -39,7 +39,6 @@ interface Signature {
3939
submode: Submode;
4040
maxNumberOfItemsToAttach?: number;
4141
autoAttachedCardTooltipMessage?: string;
42-
disabled?: boolean;
4342
};
4443
}
4544

@@ -120,7 +119,7 @@ export default class AiAssistantAttachmentPicker extends Component<Signature> {
120119
@iconWidth='14'
121120
@iconHeight='14'
122121
{{on 'click' this.chooseFile}}
123-
@disabled={{(or this.doChooseFile.isRunning @disabled)}}
122+
@disabled={{this.doChooseFile.isRunning}}
124123
data-test-choose-file-btn
125124
>
126125
<span class={{if this.files.length 'boxel-sr-only'}}>
@@ -134,7 +133,7 @@ export default class AiAssistantAttachmentPicker extends Component<Signature> {
134133
@iconWidth='14'
135134
@iconHeight='14'
136135
{{on 'click' this.chooseCard}}
137-
@disabled={{(or this.doChooseCard.isRunning @disabled)}}
136+
@disabled={{this.doChooseCard.isRunning}}
138137
data-test-choose-card-btn
139138
>
140139
<span class={{if this.cards.length 'boxel-sr-only'}}>

packages/host/app/components/matrix/room.gts

+2-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { TrackedObject, TrackedSet } from 'tracked-built-ins';
2929
import { v4 as uuidv4 } from 'uuid';
3030

3131
import { BoxelButton, LoadingIndicator } from '@cardstack/boxel-ui/components';
32-
import { and, eq, not, or } from '@cardstack/boxel-ui/helpers';
32+
import { and, eq, not } from '@cardstack/boxel-ui/helpers';
3333

3434
import {
3535
type getCard,
@@ -172,16 +172,12 @@ export default class Room extends Component<Signature> {
172172
'Current card is shared automatically'
173173
'Topmost card is shared automatically'
174174
}}
175-
@disabled={{this.matrixService.isLoadingTimeline}}
176175
/>
177176
<LLMSelect
178177
@selected={{@roomResource.activeLLM}}
179178
@onChange={{@roomResource.activateLLM}}
180179
@options={{this.supportedLLMs}}
181-
@disabled={{(or
182-
@roomResource.isActivatingLLM
183-
this.matrixService.isLoadingTimeline
184-
)}}
180+
@disabled={{@roomResource.isActivatingLLM}}
185181
/>
186182
</div>
187183
</div>

0 commit comments

Comments
 (0)