Skip to content

Commit d9e0e5f

Browse files
committed
UI display: ER-Model-Relation
1 parent 2831bf6 commit d9e0e5f

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

datahub-web-react/src/app/entity/ermodelrelations/ERModelRelationEntity.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ERModelRelationEntity implements Entity<ErModelRelation> {
5353

5454
getCollectionName = () => '';
5555

56-
getEntityName = () => 'ERModelRelation';
56+
getEntityName = () => 'ER-Model-Relation';
5757

5858
renderProfile = (urn: string) => (
5959
<EntityProfile
@@ -64,7 +64,7 @@ export class ERModelRelationEntity implements Entity<ErModelRelation> {
6464
getOverrideProperties={this.getOverridePropertiesFromEntity}
6565
tabs={[
6666
{
67-
name: 'ERModelRelation',
67+
name: 'ER-Model-Relation',
6868
component: ERModelRelationTab,
6969
},
7070
{

datahub-web-react/src/app/entity/shared/components/styled/ERModelRelation/CreateERModelRelationModal.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export const CreateERModelRelationModal = ({
324324
<Modal
325325
title={
326326
<div className="footer-parent-div">
327-
<p className="ermodelrelation-title">ERModelRelation parameters</p>
327+
<p className="ermodelrelation-title">ER-Model-Relation Parameters</p>
328328
<div>
329329
<Button onClick={onCancelSelect} className="cancel-btn" size="large">
330330
Cancel
@@ -352,7 +352,7 @@ export const CreateERModelRelationModal = ({
352352
<p className="all-content-heading">Table 2</p>
353353
<p className="all-information">{table2NameBusiness}</p>
354354
<div className="techNameDisplay">{table2NameTech !== table2NameBusiness && table2NameTech}</div>
355-
<p className="all-content-heading">ERModelRelation name</p>
355+
<p className="all-content-heading">ER-Model-Relation name</p>
356356
<Form
357357
form={form}
358358
layout="vertical"
@@ -368,15 +368,15 @@ export const CreateERModelRelationModal = ({
368368
rules={[
369369
{
370370
required: true,
371-
message: `ERModelRelation name is required.`,
371+
message: `ER-Model-Relation name is required.`,
372372
},
373373
{
374374
validator: (_, value) =>
375375
checkDuplicateERModelRelation(getSearchResultsERModelRelations, value?.trim()).then((result) => {
376376
return result === true && !isEditing
377377
? Promise.reject(
378378
new Error(
379-
'This ermodelrelation name already exists. A unique name for each ermodelrelation is required.',
379+
'This ER-Model-Relation name already exists. A unique name for each ER-Model-Relation is required.',
380380
),
381381
)
382382
: Promise.resolve();
@@ -398,11 +398,11 @@ export const CreateERModelRelationModal = ({
398398
<Button type="link" className="add-btn-link" onClick={handleAdd}>
399399
<PlusOutlined /> Add Row
400400
</Button>
401-
<p className="all-content-heading">ERModelRelation details</p>
401+
<p className="all-content-heading">ER-Model-Relation details</p>
402402
<Form.Item style={{ margin: 0 }} name="ermodelrelationDetails">
403403
<TextArea
404404
className="ermodelrelation-details-ta"
405-
placeholder="Please enter ermodelrelation details here"
405+
placeholder="Please enter ER-Model-Relation details here"
406406
onChange={(e) => setDetails(e.target.value)}
407407
/>
408408
</Form.Item>

datahub-web-react/src/app/entity/shared/components/styled/ERModelRelation/ERModelRelationPreview.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const ERModelRelationPreview = ({ ermodelrelationData, baseEntityUrn, pre
149149
{prePageType === 'Dataset' && (
150150
<Button type="link" onClick={() => handleViewEntity(EntityType.Ermodelrelation, ermodelrelationData?.urn)}>
151151
<div className="div-view">
152-
View ermodelrelation <RightOutlined />{' '}
152+
View ER-Model-Relation <RightOutlined />{' '}
153153
</div>
154154
</Button>
155155
)}
@@ -165,7 +165,7 @@ export const ERModelRelationPreview = ({ ermodelrelationData, baseEntityUrn, pre
165165
}}
166166
>
167167
<div className="div-edit-img">
168-
<img src={editIcon} alt="" /> <div className="div-edit">Edit ERModelRelation</div>
168+
<img src={editIcon} alt="" /> <div className="div-edit">Edit ER-Model-Relation</div>
169169
{prePageType === 'ERModelRelation' && <div className="extra-margin-rev" />}
170170
</div>
171171
</Button>
@@ -182,7 +182,7 @@ export const ERModelRelationPreview = ({ ermodelrelationData, baseEntityUrn, pre
182182
</Row>
183183
{prePageType === 'Dataset' && (
184184
<div>
185-
<p className="all-content-heading">ERModelRelation details</p>
185+
<p className="all-content-heading">ER-Model-Relation details</p>
186186
<p className="all-content-info">{ermodelrelationData?.editableProperties?.description}</p>
187187
</div>
188188
)}

datahub-web-react/src/app/entity/shared/components/styled/ERModelRelation/ERModelRelationUtils.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export const validateERModelRelation = async (nameField: string, tableSchema: ER
4141
const errors: string[] = [];
4242
const bDuplicateName = await checkDuplicateERModelRelation(getSearchResultsERModelRelations, nameField?.trim()).then((result) => result);
4343
if (nameField === '') {
44-
errors.push('ERModelRelation name is required');
44+
errors.push('ER-Model-Relation name is required');
4545
}
4646
if (bDuplicateName && !editFlag) {
47-
errors.push('This ermodelrelation name already exists. A unique name for each ermodelrelation is required');
47+
errors.push('This ER-Model-Relation name already exists. A unique name for each ER-Model-Relation is required');
4848
}
4949
const faultyRows = tableSchema.filter((item) => validateTableData(item) !== true);
5050
if (faultyRows.length > 0) {
51-
errors.push('Please fill out or remove all empty ERModelRelation fields');
51+
errors.push('Please fill out or remove all empty ER-Model-Relation fields');
5252
}
5353
return errors;
5454
};

datahub-web-react/src/app/entity/shared/tabs/Dataset/Relationship/RelationshipsTab.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const RelationshipsTab = () => {
5252
const tabs = [
5353
{
5454
key: 'ermodelrelationsTab',
55-
tab: 'ERModelRelations',
55+
tab: 'ER-Model-Relations',
5656
},
5757
];
5858
const {
@@ -125,7 +125,7 @@ export const RelationshipsTab = () => {
125125
)}
126126
{loadingERModelRelation && (
127127
<div>
128-
ERModelRelations <LoadingOutlined />
128+
ER-Model-Relations <LoadingOutlined />
129129
</div>
130130
)}
131131
</>
@@ -248,7 +248,7 @@ export const RelationshipsTab = () => {
248248
setermodelrelationModalVisible(true);
249249
}}
250250
>
251-
<PlusOutlined /> Add ERModelRelation
251+
<PlusOutlined /> Add ER-Model-Relation
252252
</Button>
253253
</div>{' '}
254254
<br />

0 commit comments

Comments
 (0)