Skip to content

Commit

Permalink
[Fix] showing alternative ID in overview tables; fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
samatrhea committed May 13, 2024
1 parent 3197674 commit 53a47bf
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 8 deletions.
6 changes: 5 additions & 1 deletion reqifviewer/Components/AttributeDefinitionsComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
<a href="/reqif/@this.reqifIdentifier/spectype/@attributeDefinition.SpecType.Identifier/attributedefinition/@attributeDefinition?.Identifier">@attributeDefinition?.Identifier</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="Specification" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="AttributeDefinition" Title="Alternative Id">
<Template Context="attributeDefinition">
@attributeDefinition?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>

Expand Down
6 changes: 5 additions & 1 deletion reqifviewer/Components/SpecObjectsComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ limitations under the License.
</RadzenGridColumn>
<RadzenGridColumn TItem="SpecObject" Property="Description" Title="Description" />
<RadzenGridColumn TItem="SpecObject" Property="LastChange" Title="Last Change" />
<RadzenGridColumn TItem="SpecObject" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="SpecObject" Title="Alternative Id">
<Template Context="specObject">
@specObject?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenGrid>

Expand Down
6 changes: 5 additions & 1 deletion reqifviewer/Components/SpecificationsComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
<a href="/reqif/@this.reqifIdentifier/specification/@specification?.Identifier">@specification?.Identifier</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="Specification" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="Specification" Title="Alternative Id">
<Template Context="specification">
@specification?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ else
<a href="/reqif/@this.ReqIF/spectype/@attributeDefinition?.SpecType?.Identifier/attributedefinition/@attributeDefinition?.Identifier">@attributeDefinition?.Identifier</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="DatatypeDefinition" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="AttributeDefinition" Title="Alternative Id">
<Template Context="attributeDefinition">
@attributeDefinition?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>

</RadzenDataGrid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ else
<a href="/reqif/@this.Identifier/datatypedefinition/@datatypeDefinition?.Identifier">@datatypeDefinition?.Identifier</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="DatatypeDefinition" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="DatatypeDefinition" Title="Alternative Id">
<Template Context="datatypeDefinition">
@datatypeDefinition?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>
}
Expand Down
6 changes: 5 additions & 1 deletion reqifviewer/Pages/SpecRelation/SpecRelationPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ else
</RadzenGridColumn>
<RadzenGridColumn TItem="SpecRelation" Property="Description" Title="Description" />
<RadzenGridColumn TItem="SpecRelation" Property="LastChange" Title="Last Change" />
<RadzenGridColumn TItem="SpecRelation" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="SpecRelation" Title="Alternative Id">
<Template Context="specRelation">
@specRelation?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenGrid>
}
Expand Down
6 changes: 5 additions & 1 deletion reqifviewer/Pages/SpecType/SpecTypePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ else
<RadzenDataGridColumn TItem="SpecType" Property="Description" Title="Description" />
<RadzenDataGridColumn TItem="SpecType" Property="LastChange" Title="Last Change" />
<RadzenDataGridColumn TItem="SpecType" Property="Identifier" Title="Identifier" />
<RadzenDataGridColumn TItem="SpecType" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="SpecType" Title="Alternative Id">
<Template Context="specType">
@specType?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>
}
Expand Down
6 changes: 5 additions & 1 deletion reqifviewer/Pages/Specification/SpecificationPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ else
<a href="/reqif/@Identifier/specification/@specification?.Identifier">@specification?.Identifier</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="Specification" Property="AlternativeId" Title="Alternative Id" />
<RadzenDataGridColumn TItem="Specification" Title="Alternative Id">
<Template Context="specification">
@specification?.AlternativeId?.Identifier
</Template>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>
}
Expand Down

0 comments on commit 53a47bf

Please sign in to comment.