From 7df93c89ad4930a1b7a390301eec3da18777383c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 4 Apr 2019 14:14:09 +0200 Subject: [PATCH] switch to datePublished in asset history --- client/src/components/molecules/Asset.tsx | 7 +++++-- client/src/components/organisms/AssetsUser.tsx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/components/molecules/Asset.tsx b/client/src/components/molecules/Asset.tsx index db1d048..8bd1296 100644 --- a/client/src/components/molecules/Asset.tsx +++ b/client/src/components/molecules/Asset.tsx @@ -12,8 +12,11 @@ const AssetLink = ({ asset, list }: { asset: any; list?: boolean }) => {

{base.name}

-
- {moment(base.dateCreated, 'YYYYMMDD').fromNow()} +
+ {moment(base.datePublished, 'YYYYMMDD').fromNow()}
diff --git a/client/src/components/organisms/AssetsUser.tsx b/client/src/components/organisms/AssetsUser.tsx index d7833d5..4089868 100644 --- a/client/src/components/organisms/AssetsUser.tsx +++ b/client/src/components/organisms/AssetsUser.tsx @@ -52,7 +52,7 @@ export default class AssetsUser extends PureComponent<
{this.props.recent && (

- Your Latest Data Sets + Your Latest Published Data Sets

)}