From 4293f4c64b9e5629b9d0be4d4c1a0559b5f2b45f Mon Sep 17 00:00:00 2001 From: illfixit <66363651+illfixit@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:32:37 +0200 Subject: [PATCH] chore: refactor with innerHTML --- .../asset-detail-dialog.component.html | 21 ++----- src/assets/i18n/en.json | 63 +++++++++---------- 2 files changed, 36 insertions(+), 48 deletions(-) diff --git a/src/app/shared/business/asset-detail-dialog/asset-detail-dialog.component.html b/src/app/shared/business/asset-detail-dialog/asset-detail-dialog.component.html index 1410ab41..74ae9b67 100644 --- a/src/app/shared/business/asset-detail-dialog/asset-detail-dialog.component.html +++ b/src/app/shared/business/asset-detail-dialog/asset-detail-dialog.component.html @@ -139,24 +139,15 @@ (negotiateClick)="onNegotiateClick($event)"> -
+
{{ 'asset_detail_dialog.on_request_data_offer_title' | translate }}
-
- {{ 'asset_detail_dialog.on_request_data_offer_description1' | translate }} -
-
- {{ 'asset_detail_dialog.on_request_data_offer_description2' | translate - }}{{ - 'asset_detail_dialog.on_request_data_offer_description3' | translate - }}{{ 'asset_detail_dialog.on_request_data_offer_description4' | translate - }}
{{ - 'asset_detail_dialog.on_request_data_offer_description5' | translate - }}. -
-
+
+ diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index d64adaa2..92424b9d 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -119,43 +119,44 @@ "tooltip.failed_details": "Click for failed catalog details", "tooltip.negotiate": "Cannot negotiate contracts with your own connector.", - "notification.accept_licence": "Hereby I agree that by pressing the 'Confirm' button, I accept the license\n terms, policies, and additional conditions for use, including any copyright\n notices, associated with the provider's offer.", - "notification.agree": "I agree to the Data Offer Terms & Conditions", "notification.asset": "Successfully saved asset.", - "notification.at": "Created At", "notification.compl_negotiation": "Contract Negotiation complete!", - "notification.connector_id_plural": "Connector IDs", - "notification.connector_id": "Connector ID", - "notification.content_type": "Content Type", - "notification.data_offer": "Data Offer Terms & Conditions", - "notification.delete_one": "Please confirm you want to delete", - "notification.delete_title": "Deletion confirmation", - "notification.delete_two": "This action cannot be undone.", "notification.failed_asset": "Failed saving asset!", "notification.failed_create_policy": "Failed creating Policy!", "notification.failed_refresh": "Failed refreshing asset list!", "notification.failed_transfer_detail_fetch": "Failed to fetch asset details!", - "notification.http_param": "HTTP Data Source Parameterization", - "notification.json_ld": "Show JSON-LD", - "notification.json": "Cleaned JSON", - "notification.negotiate": "Negotiate", - "notification.negotiating": "Negotiating...", "notification.negotiation": "Failed negotiating contract.", - "notification.no_description": "No Description", - "notification.no_transfer": "No transfer processes started yet.", - "notification.organization": "Organization", - "notification.oth_connector": "Other Connector", - "notification.participant_id_plural": "Participant IDs", - "notification.participant_id": "Participant ID", - "notification.policy_details": "Show Policy Details", - "notification.show_less": "Show less", - "notification.show_more": "Show more", "notification.starting_neg": "Failure starting negotiation.", - "notification.succ_negotiating": "Successfully Negotiated", "notification.succ_pol": "Successfully created policy.", - "notification.t_history": "Transfer History", - "notification.transfer": "Transfer", - "notification.up_at": "Updated At", + + "component_library.accept_licence": "Hereby I agree that by pressing the 'Confirm' button, I accept the license\n terms, policies, and additional conditions for use, including any copyright\n notices, associated with the provider's offer.", + "component_library.agree": "I agree to the Data Offer Terms & Conditions", + "component_library.at": "Created At", + "component_library.connector_id_plural": "Connector IDs", + "component_library.connector_id": "Connector ID", + "component_library.content_type": "Content Type", + "component_library.data_offer": "Data Offer Terms & Conditions", + "component_library.delete_one": "Please confirm you want to delete", + "component_library.delete_title": "Deletion confirmation", + "component_library.delete_two": "This action cannot be undone.", + "component_library.http_param": "HTTP Data Source Parameterization", + "component_library.json_ld": "Show JSON-LD", + "component_library.json": "Cleaned JSON", + "component_library.negotiate": "Negotiate", + "component_library.negotiating": "Negotiating...", + "component_library.no_description": "No Description", + "component_library.no_transfer": "No transfer processes started yet.", + "component_library.organization": "Organization", + "component_library.oth_connector": "Other Connector", + "component_library.participant_id_plural": "Participant IDs", + "component_library.participant_id": "Participant ID", + "component_library.policy_details": "Show Policy Details", + "component_library.show_less": "Show less", + "component_library.show_more": "Show more", + "component_library.succ_negotiating": "Successfully Negotiated", + "component_library.t_history": "Transfer History", + "component_library.transfer": "Transfer", + "component_library.up_at": "Updated At", "services.curator_org": "Curator Organization Name", "services.curator_url": "Curator URL", @@ -469,11 +470,7 @@ "connector_ui.policies": "Policies", "connector_ui.transfer": "Transfer History", - "asset_detail_dialog.on_request_data_offer_description1": "This data offer is not available for immediate consumption. However, the creator left an email address to contact them if interested.", - "asset_detail_dialog.on_request_data_offer_description2": "Click", - "asset_detail_dialog.on_request_data_offer_description3": "Contact", - "asset_detail_dialog.on_request_data_offer_description4": "to email the data offer provider. Alternatively, you can also copy the contact email address from the Contact Information", - "asset_detail_dialog.on_request_data_offer_description5": "section above", + "asset_detail_dialog.on_request_data_offer_description_html": "This data offer is not available for immediate consumption. However, the creator left an email address to contact them if interested.
Click Contact to email the data offer provider. Alternatively, you can also copy the contact email address from the Contact Information section above.", "asset_detail_dialog.on_request_data_offer_title": "On Request Data Offer", "create_asset.asset_id_tooltip": "Asset ID, used internally, is an auto-generated string in a URL-compatible format, combining the asset name and version with a urn:artifact: prefix. You can customize it if needed.",