diff --git a/src/app/clusters/components/cluster-description/cluster-description.component.html b/src/app/clusters/components/cluster-description/cluster-description.component.html index 5d3831d..d40cfe7 100644 --- a/src/app/clusters/components/cluster-description/cluster-description.component.html +++ b/src/app/clusters/components/cluster-description/cluster-description.component.html @@ -1,15 +1,20 @@ -
+
-
-
+
+

{{ 'common.description' | translate }}

- {{ 'common.edit' | translate }} +
+
-
-

{{ cluster?.metadata?.description }}

-
+ @if (cluster?.metadata?.description) { +
{{ cluster?.metadata?.description }}
+ } @else { +
{{ 'common.noValue' | translate }}
+ }
diff --git a/src/app/clusters/pages/cluster-metadata-page/cluster-metadata-page.component.html b/src/app/clusters/pages/cluster-metadata-page/cluster-metadata-page.component.html index f339d32..abac8d6 100644 --- a/src/app/clusters/pages/cluster-metadata-page/cluster-metadata-page.component.html +++ b/src/app/clusters/pages/cluster-metadata-page/cluster-metadata-page.component.html @@ -68,7 +68,7 @@ {{ 'pages.clusters.details.metadata.description' | translate }} -
+
{{ cluster?.metadata?.description }}
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index d593c50..a407a53 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -118,7 +118,8 @@ "summary": "Summary", "report": "Report", "change": "Change", - "description": "Description" + "description": "Description", + "noValue": "No value" }, "error": { "forbidden": "Forbidden area", diff --git a/src/assets/i18n/no.json b/src/assets/i18n/no.json index a3f7b47..55e6944 100644 --- a/src/assets/i18n/no.json +++ b/src/assets/i18n/no.json @@ -118,7 +118,8 @@ "summary": "Sammendrag", "report": "Rapport", "change": "Change", - "description": "Beskrivelse" + "description": "Beskrivelse", + "noValue": "Ingen verdi" }, "nav": { "home": "Oversikt",