Skip to content

Commit f5d65eb

Browse files
committed
fix: process not shown
1 parent 45da766 commit f5d65eb

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/ConnectionsModal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export default (props: {
101101
</DragOverlay>
102102
</DragDropProvider>
103103
</div>
104-
<label class="modal-backdrop" htmlFor="connection-modal">
105-
Close
106-
</label>
104+
<label class="modal-backdrop" for="connection-modal" />
107105
</div>
108106
</>
109107
)

src/pages/Connections.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ export default () => {
140140
},
141141
{
142142
accessorKey: AccessorKey.Process,
143-
accessorFn: (row) => row.metadata.process || '-',
143+
accessorFn: (row) =>
144+
row.metadata.process ||
145+
row.metadata.processPath.replace(/^.*[/\\](.*)$/, '$1') ||
146+
'-',
144147
},
145148
{
146149
accessorKey: AccessorKey.Host,
@@ -237,7 +240,7 @@ export default () => {
237240
placeholder="Search"
238241
onInput={(e) => setSearch(e.target.value)}
239242
/>
240-
<label htmlFor="connection-modal" class="btn btn-circle">
243+
<label for="connection-modal" class="btn btn-circle">
241244
<IconSettings />
242245
</label>
243246
<ConnectionsModal

src/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ declare module 'solid-js' {
22
namespace JSX {
33
interface Directives {
44
form: {}
5+
sortable: {}
56
}
67
}
78
}

0 commit comments

Comments
 (0)