- {{ attribute.name }} |
- |
- {{ attribute.type }} |
- {{ attribute.unit }} |
+ {{ attribute.name | textOrPlaceholder }} |
+ |
+ {{ attribute.type | textOrPlaceholder }} |
+ {{ attribute.unit | textOrPlaceholder }} |
}
diff --git a/src/app/data-catalogue/components/dataset-detail/dataset-element-table/dataset-element-table.component.ts b/src/app/data-catalogue/components/dataset-detail/dataset-element-table/dataset-element-table.component.ts
index 98fe40a45..14af52584 100644
--- a/src/app/data-catalogue/components/dataset-detail/dataset-element-table/dataset-element-table.component.ts
+++ b/src/app/data-catalogue/components/dataset-detail/dataset-element-table/dataset-element-table.component.ts
@@ -2,11 +2,12 @@ import {Component, Input} from '@angular/core';
import {LayerAttributes} from '../../../../shared/interfaces/layer-attributes.interface';
import {NgForOf} from '@angular/common';
import {FormatLineBreaksPipe} from '../../../../shared/pipes/format-line-breaks.pipe';
+import {TextOrPlaceholderPipe} from '../../../../shared/pipes/text-or-placeholder.pipe';
@Component({
selector: 'dataset-element-table',
standalone: true,
- imports: [NgForOf, FormatLineBreaksPipe],
+ imports: [NgForOf, FormatLineBreaksPipe, TextOrPlaceholderPipe],
templateUrl: './dataset-element-table.component.html',
styleUrl: './dataset-element-table.component.scss',
})
diff --git a/src/app/data-catalogue/utils/data-extraction.utils.spec.ts b/src/app/data-catalogue/utils/data-extraction.utils.spec.ts
index 7ac104400..b0dc99737 100644
--- a/src/app/data-catalogue/utils/data-extraction.utils.spec.ts
+++ b/src/app/data-catalogue/utils/data-extraction.utils.spec.ts
@@ -19,7 +19,7 @@ describe('DataExtractionUtils', () => {
zipCode: 2222,
poBox: null,
section: null,
- url: 'https://www.example.com',
+ url: {href: 'https://www.example.com'},
};
const result = DataExtractionUtils.extractContactElements(mockContact);
@@ -36,7 +36,7 @@ describe('DataExtractionUtils', () => {
{title: 'Tel', value: mockContact.phone, type: 'text'},
{title: 'Tel direkt', value: mockContact.phoneDirect, type: 'text'},
{title: 'E-Mail', value: mockContact.email, type: 'url'},
- {title: 'www', value: {href: mockContact.url}, type: 'url'},
+ {title: 'www', value: mockContact.url, type: 'url'},
];
expect(result).toEqual(expected);
});
diff --git a/src/app/data-catalogue/utils/data-extraction.utils.ts b/src/app/data-catalogue/utils/data-extraction.utils.ts
index bec6699fc..d38f3751b 100644
--- a/src/app/data-catalogue/utils/data-extraction.utils.ts
+++ b/src/app/data-catalogue/utils/data-extraction.utils.ts
@@ -12,7 +12,7 @@ export class DataExtractionUtils {
{title: 'Tel', value: contact.phone, type: 'text'},
{title: 'Tel direkt', value: contact.phoneDirect, type: 'text'},
{title: 'E-Mail', value: contact.email, type: 'url'},
- {title: 'www', value: {href: contact.url}, type: 'url'},
+ {title: 'www', value: contact.url, type: 'url'},
];
}
}
diff --git a/src/app/map/components/map-controls/coordinate-scale-inputs/coordinate-scale-inputs.component.html b/src/app/map/components/map-controls/coordinate-scale-inputs/coordinate-scale-inputs.component.html
index 1bc85d0c9..e935bea6d 100644
--- a/src/app/map/components/map-controls/coordinate-scale-inputs/coordinate-scale-inputs.component.html
+++ b/src/app/map/components/map-controls/coordinate-scale-inputs/coordinate-scale-inputs.component.html
@@ -4,6 +4,7 @@