diff --git a/client/src/models/AssetModel.ts b/client/src/models/AssetModel.ts index 43b3655..5dd6023 100644 --- a/client/src/models/AssetModel.ts +++ b/client/src/models/AssetModel.ts @@ -8,14 +8,10 @@ const AssetModel = { name: null, description: null, dateCreated: null, - size: null, author: null, type: '', license: null, copyrightHolder: null, - encoding: null, - compression: null, - contentType: null, workExample: null, files: [], categories: [], diff --git a/client/src/routes/Details/index.tsx b/client/src/routes/Details/index.tsx index 39700ba..6d9251a 100644 --- a/client/src/routes/Details/index.tsx +++ b/client/src/routes/Details/index.tsx @@ -1,6 +1,5 @@ import React, { Component } from 'react' import { Logger } from '@oceanprotocol/squid' -import queryString from 'query-string' import Route from '../../components/templates/Route' import Spinner from '../../components/atoms/Spinner' import { User } from '../../context/User' @@ -37,8 +36,14 @@ export default class Details extends Component { accessService.serviceDefinitionId, account[0] ) - const folder = "" - const path = await this.context.ocean.assets.consume(agreementId, ddo.id, accessService.serviceDefinitionId, account[0], folder) + const folder = '' + const path = await this.context.ocean.assets.consume( + agreementId, + ddo.id, + accessService.serviceDefinitionId, + account[0], + folder + ) Logger.log('path', path) } catch (e) { Logger.log('error', e) diff --git a/client/src/routes/Publish/Files/Item.tsx b/client/src/routes/Publish/Files/Item.tsx index 2fb57da..47afc96 100644 --- a/client/src/routes/Publish/Files/Item.tsx +++ b/client/src/routes/Publish/Files/Item.tsx @@ -8,10 +8,15 @@ const Item = ({ item, removeItem }: { item: any; removeItem: any }) => (
url: {item.found ? 'confirmed' : 'unconfirmed'} - size: - {item.found && item.size ? filesize(item.size) : 'unknown'} + {item.found && item.contentLength + ? filesize(item.contentLength) + : 'unknown size'} + + + {item.found && item.contentType + ? item.contentType + : 'unknown type'} - type: {item.found && item.type ? item.type : 'unknown'}