Skip to content

Commit

Permalink
chore: refactor with innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Sep 26, 2024
1 parent fe4c342 commit 4293f4c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,15 @@
(negotiateClick)="onNegotiateClick($event)">
</contract-offer-mini-list>

<div *ngIf="isOnRequestDataOffer">
<ng-container *ngIf="isOnRequestDataOffer">
<div class="property-grid-group-title">
{{ 'asset_detail_dialog.on_request_data_offer_title' | translate }}
</div>
<div>
{{ 'asset_detail_dialog.on_request_data_offer_description1' | translate }}
</div>
<div>
{{ 'asset_detail_dialog.on_request_data_offer_description2' | translate
}}<span class="!font-medium">{{
'asset_detail_dialog.on_request_data_offer_description3' | translate
}}</span
>{{ 'asset_detail_dialog.on_request_data_offer_description4' | translate
}}<br />{{
'asset_detail_dialog.on_request_data_offer_description5' | translate
}}.
</div>
</div>
<div
[innerHTML]="
'asset_detail_dialog.on_request_data_offer_description_html' | translate
"></div>
</ng-container>
</div>

<mat-dialog-actions>
Expand Down
63 changes: 30 additions & 33 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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.<br>Click <b class=\"!font-semibold\">Contact</b> 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.",
Expand Down

0 comments on commit 4293f4c

Please sign in to comment.