Skip to content

Commit 09f72af

Browse files
authored
Merge pull request #1055 from insane-22/link-preview-in-identifiers
BB-765: Identifiers editor: each value should show a generated link from the cleaned up value
2 parents f406084 + 69767ed commit 09f72af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/client/entity-editor/identifier-editor/identifier-row.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import ValueField from './value-field';
3636
import {collapseWhiteSpaces} from '../../../common/helpers/utils';
3737
import {connect} from 'react-redux';
3838
import {faTimes} from '@fortawesome/free-solid-svg-icons';
39+
import IdentifierLink from "../../components/pages/entities/identifiers-links.js"
3940

4041

4142
type OwnProps = {
@@ -128,6 +129,14 @@ function IdentifierRow({
128129
</Button>
129130
</Col>
130131
</Row>
132+
{typeValue && valueValue && (
133+
<Row>
134+
<Col>
135+
Preview Link:
136+
<IdentifierLink typeId={typeValue} value={valueValue}/>
137+
</Col>
138+
</Row>
139+
)}
131140
<hr/>
132141
</div>
133142
);

0 commit comments

Comments
 (0)