Compare commits

..

1 Commits

Author SHA1 Message Date
Kit Langton b0ac25b0a8 fix(tui): distinguish disconnect actions 2026-08-06 19:56:43 -04:00
2 changed files with 6 additions and 4 deletions
@@ -123,6 +123,7 @@ function manageConnections(
onConnected?: OnIntegrationConnected,
) {
dialog.replace(() => {
const theme = useTheme("elevated")
const data = useData()
const client = useClient()
const toast = useToast()
@@ -142,6 +143,9 @@ function manageConnections(
...credentialConnections(integration).map((connection) => ({
title: `Disconnect ${connection.label}`,
value: connection.id,
category: "Connected accounts",
bg: theme.background.action.destructive.focused,
fg: theme.text.action.destructive.focused,
onSelect: () => {
void client.api.credential
.remove({ credentialID: connection.id, location: location(data) })
@@ -200,12 +200,10 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
<box
paddingLeft={4}
paddingRight={4}
backgroundColor={
store.active === "copy" ? theme.background.action.primary.focused : overlayTheme.background.default
}
backgroundColor={overlayTheme.background.default}
onMouseUp={() => confirm("copy")}
>
<text fg={store.active === "copy" ? theme.text.action.primary.focused : overlayTheme.text.default}>Copy</text>
<text fg={overlayTheme.text.default}>Copy</text>
</box>
<box
paddingLeft={4}