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> </DragOverlay>
</DragDropProvider> </DragDropProvider>
</div> </div>
<label class="modal-backdrop" htmlFor="connection-modal"> <label class="modal-backdrop" for="connection-modal" />
Close
</label>
</div> </div>
</> </>
) )

View File

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

1
src/types.d.ts vendored
View File

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