Skip to content

Commit

Permalink
ui(frontend): fix knowledge graph editor
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Aug 12, 2024
1 parent d74651a commit f946cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/app/src/components/graph/components/LinkDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { handleServerRelationship, type Relationship } from '../utils';
import type { IdType } from '../network/Network';
import { useRemote } from '../remote';
import { useDirtyRelationship } from '../useDirtyRelationship';
import { EditingButton } from './EditingButton';
// import { EditingButton } from './EditingButton';
import { InputField } from './InputField';
import { JsonField } from './JsonField';
import { NetworkContext } from './NetworkContext';
Expand Down Expand Up @@ -73,12 +73,12 @@ export function LinkDetails ({
<span className="text-sm text-muted-foreground font-normal ">
<b>#{relationship.id}</b> relationship
</span>
<EditingButton editing={editing} onStartEdit={() => setEditing(true)} onSave={handleSave} onReset={handleReset} busy={busy} onEnterSubgraph={() => onEnterSubgraph('document', relationship.meta.doc_id)} subGraphTitle="Document subgraph" />
{/*<EditingButton editing={editing} onStartEdit={() => setEditing(true)} onSave={handleSave} onReset={handleReset} busy={busy} onEnterSubgraph={() => onEnterSubgraph('document', relationship.meta.doc_id)} subGraphTitle="Document subgraph" />*/}
</div>
{relationship.meta.doc_id && <section>
<h6 className="text-xs font-bold text-accent-foreground mb-1">Document URI</h6>
<p className="block w-full text-xs text-accent-foreground">
<a className="underline" href={relationship.meta.doc_id} target="_blank">{relationship.meta.doc_id}</a>
<a className="underline" href={relationship.meta.source_uri} target="_blank">{relationship.meta.source_uri}</a>
</p>
</section>}
<TextareaField label="Description" ref={dirtyRelationship.descriptionRef} defaultValue={relationship.description} disabled={controlsDisabled} />
Expand Down

0 comments on commit f946cac

Please sign in to comment.