Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c96c51

Browse filesBrowse files
committed
Merge branch 'delete-button-on-joe-instance' into 'master'
fix(ui): fix the delete button on Joe Bot instance page See merge request postgres-ai/database-lab!832
2 parents 509566c + bada2e8 commit 1c96c51
Copy full SHA for 1c96c51

File tree

1 file changed

+9
-5
lines changed
Filter options

1 file changed

+9
-5
lines changed

‎ui/packages/platform/src/components/JoeInstances/JoeInstances.tsx

Copy file name to clipboardExpand all lines: ui/packages/platform/src/components/JoeInstances/JoeInstances.tsx
+9-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ import { StubContainer } from '@postgres.ai/shared/components/StubContainer'
2727
import { PageSpinner } from '@postgres.ai/shared/components/PageSpinner'
2828
import { icons } from '@postgres.ai/shared/styles/icons'
2929
import { GatewayLink } from '@postgres.ai/shared/components/GatewayLink'
30-
import { ClassesType, RefluxTypes } from '@postgres.ai/platform/src/components/types'
30+
import {
31+
ClassesType,
32+
RefluxTypes,
33+
} from '@postgres.ai/platform/src/components/types'
3134

3235
import Actions from '../../actions/actions'
3336
import { ConsoleBreadcrumbsWrapper } from 'components/ConsoleBreadcrumbs/ConsoleBreadcrumbsWrapper'
@@ -113,7 +116,7 @@ class JoeInstances extends Component<
113116
Actions.setJoeInstancesProject(orgId, 0)
114117
}
115118

116-
this.unsubscribe = (Store.listen as RefluxTypes["listen"]) (function () {
119+
this.unsubscribe = (Store.listen as RefluxTypes['listen'])(function () {
117120
const auth = this.data && this.data.auth ? this.data.auth : null
118121
const joeInstances =
119122
this.data && this.data.joeInstances ? this.data.joeInstances : null
@@ -200,7 +203,7 @@ class JoeInstances extends Component<
200203
this.state.data && this.state.data.auth ? this.state.data.auth : null
201204

202205
if (anchorEl) {
203-
let instanceId = anchorEl.getAttribute('instanceid')
206+
let instanceId = anchorEl.getAttribute('aria-rowindex')
204207
if (!instanceId) {
205208
return
206209
}
@@ -358,8 +361,8 @@ class JoeInstances extends Component<
358361
>
359362
<p>
360363
Joe Bot is a virtual DBA for SQL Optimization. Joe helps engineers
361-
quickly troubleshoot and optimize SQL. Joe runs on top of the
362-
DBLab Engine. (
364+
quickly troubleshoot and optimize SQL. Joe runs on top of the DBLab
365+
Engine. (
363366
<GatewayLink
364367
href="https://postgres.ai/docs/joe-bot"
365368
target="_blank"
@@ -422,6 +425,7 @@ class JoeInstances extends Component<
422425
aria-label="more"
423426
aria-controls="instance-menu"
424427
aria-haspopup="true"
428+
aria-rowindex={data.data[i].id}
425429
onClick={this.openMenu}
426430
>
427431
<MoreVertIcon />

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.