File tree Expand file tree Collapse file tree
apps/webapp/app/components/errors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export function ConfigureErrorAlerts({
196196 name = { slackChannel . name }
197197 placeholder = { < span className = "text-text-dimmed" > Select a Slack channel</ span > }
198198 heading = "Filter channels…"
199- defaultValue = { selectedSlackChannelValue }
199+ value = { selectedSlackChannelValue ?? "" }
200200 dropdownIcon
201201 variant = "tertiary/medium"
202202 items = { slack . channels }
@@ -243,6 +243,15 @@ export function ConfigureErrorAlerts({
243243 </ Callout >
244244 ) }
245245 < Hint >
246+ { selectedSlackChannelValue ? (
247+ < button
248+ type = "button"
249+ onClick = { ( ) => setSelectedSlackChannelValue ( "" ) }
250+ className = "mr-3 text-indigo-500 transition hover:text-indigo-400 focus-visible:focus-custom"
251+ >
252+ Remove channel
253+ </ button >
254+ ) : null }
246255 < TextLink to = { organizationSlackIntegrationPath ( organization ) } >
247256 Manage Slack connection
248257 </ TextLink >
You can’t perform that action at this time.
0 commit comments