Skip to content

Commit bdbdfa9

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-1817 Provided input for showTitle
1 parent 70c2f82 commit bdbdfa9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div *ngIf="uri && name" class="item-page-field">
2-
<ds-metadata-field-wrapper [label]="'item.page.cc.license.title' | translate">
2+
<ds-metadata-field-wrapper [label]="showTitle && ('item.page.cc.license.title' | translate)">
33
<div [ngClass]="{'row': variant === 'full', 'col': variant === 'small'}">
44

55
<!-- 'img' tag is not rendered if any errors occurs when loading it -->

src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export class ItemPageCcLicenseFieldComponent implements OnInit {
5555
*/
5656
@Input() showDisclaimer? = true;
5757

58+
/**
59+
* Shows the title
60+
*/
61+
@Input() showTitle? = false;
62+
5863
uri: string;
5964
name: string;
6065
showImage = true;

0 commit comments

Comments
 (0)