From e5627e1d029be64725368891bca5b0b55066385b Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Tue, 25 Jan 2022 14:20:42 +0100 Subject: [PATCH] Allow visiting the original provider URL (#42) Instead of truncating the original URL of each provider in the job configuration to 60 characters and losing a lot of context information, put a link to the original URL in the provider table which can be opened directly to verify what is being scraped by Fredy. --- ui/src/components/table/ProviderTable.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/components/table/ProviderTable.js b/ui/src/components/table/ProviderTable.js index 16c9a55..434afda 100644 --- a/ui/src/components/table/ProviderTable.js +++ b/ui/src/components/table/ProviderTable.js @@ -12,10 +12,6 @@ const emptyTable = () => { ); }; -const truncate = (str, n) => { - return str.length > n ? str.substr(0, n - 1) + '…' : str; -}; - const content = (providerData, onRemove) => { return ( @@ -23,7 +19,11 @@ const content = (providerData, onRemove) => { return ( {data.name} - {truncate(data.url, 60)} + + + Visit site + +