fix: process not shown

This commit is contained in:
kunish 2023-09-01 13:39:26 +08:00
parent 45da766ed0
commit f5d65eb018
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
3 changed files with 7 additions and 5 deletions

View File

@ -101,9 +101,7 @@ export default (props: {
</DragOverlay>
</DragDropProvider>
</div>
<label class="modal-backdrop" htmlFor="connection-modal">
Close
</label>
<label class="modal-backdrop" for="connection-modal" />
</div>
</>
)

View File

@ -140,7 +140,10 @@ export default () => {
},
{
accessorKey: AccessorKey.Process,
accessorFn: (row) => row.metadata.process || '-',
accessorFn: (row) =>
row.metadata.process ||
row.metadata.processPath.replace(/^.*[/\\](.*)$/, '$1') ||
'-',
},
{
accessorKey: AccessorKey.Host,
@ -237,7 +240,7 @@ export default () => {
placeholder="Search"
onInput={(e) => setSearch(e.target.value)}
/>
<label htmlFor="connection-modal" class="btn btn-circle">
<label for="connection-modal" class="btn btn-circle">
<IconSettings />
</label>
<ConnectionsModal

1
src/types.d.ts vendored
View File

@ -2,6 +2,7 @@ declare module 'solid-js' {
namespace JSX {
interface Directives {
form: {}
sortable: {}
}
}
}