File tree Expand file tree Collapse file tree
frontend/src/app/components/ui-components/table-display-fields Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- < div class ="field-wrapper " *ngIf ="formattedPoint ">
2- < span class ="value-wrapper " [matTooltip] ="formattedPoint "> {{ formattedPoint }}</ span >
3- < button mat-icon-button
4- class ="copy-button "
5- [cdkCopyToClipboard] ="formattedPoint "
6- matTooltip ="Copy to clipboard "
7- (cdkCopyToClipboardCopied) ="onCopyToClipboard.emit('Field value was copied to clipboard.') "
8- (click) ="$event.stopPropagation() ">
9- < mat-icon > content_copy</ mat-icon >
10- </ button >
11- </ div >
1+ @if (formattedPoint) {
2+ < div class ="field-wrapper ">
3+ < span class ="value-wrapper " [matTooltip] ="formattedPoint "> {{ formattedPoint }}</ span >
4+ < button mat-icon-button
5+ class ="copy-button "
6+ [cdkCopyToClipboard] ="formattedPoint "
7+ matTooltip ="Copy to clipboard "
8+ (cdkCopyToClipboardCopied) ="onCopyToClipboard.emit('Field value was copied to clipboard.') "
9+ (click) ="$event.stopPropagation() ">
10+ < mat-icon > content_copy</ mat-icon >
11+ </ button >
12+ </ div >
13+ }
Original file line number Diff line number Diff line change 11< div class ="field-display ">
22 < span class ="field-value ">
3- < a *ngIf ="isValidUrl "
4- [href] ="hrefValue " target ="_blank "
5- class ="url-link "
6- (click) ="$event.stopPropagation() ">
7- < mat-icon class ="url-link__icon " fontSet ="material-symbols-outlined "> link</ mat-icon >
8- {{value() || '—'}}
9- </ a >
10- < span *ngIf ="!isValidUrl "> {{value() || '—'}}</ span >
3+ @if (isValidUrl) {
4+ < a [href] ="hrefValue " target ="_blank "
5+ class ="url-link "
6+ (click) ="$event.stopPropagation() ">
7+ < mat-icon class ="url-link__icon " fontSet ="material-symbols-outlined "> link</ mat-icon >
8+ {{value() || '—'}}
9+ </ a >
10+ } @else {
11+ < span > {{value() || '—'}}</ span >
12+ }
1113 </ span >
1214 < button type ="button " mat-icon-button
1315 class ="field-copy-button "
You can’t perform that action at this time.
0 commit comments