mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
a2fe2fdee0
* added timeout to publish asset * add timeout to edit asses(wip) * added timout to edit metadata form * fixed wrong constant name * fix options autosorting Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro> * Fixed autosorting in edit form * Added "1 day" to timeout options * Changed ternary operators to switch * Feature/asset timeout (#325) * Compute asset timeout * Code styled * Deleted unused import * Display timeout for buy/download * Switch case for timeout values * Moved mapping function to /utils/metadata * display timeout option not matching defined ones, map seconds to string * handle update with no predefined timeout value, add weeks to map method * Display timeout on button * consume button text logic change * whoops, revert wrong change * small millisecondsToStr refactor * copy tweaks * template literal logic restore * keep tweaking help text logic * abstract into method * change whole condition logic * tweak hasDatatoken/hasPreviousOrder combination condition * Unified seconds to string conversion methods * getHelpText tweaks, small refactor * copy editing, limit hardcoded timeout list * fix mixup of map & filter * use Timeout as label and be done with it Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> Co-authored-by: claudiaHash <49017601+claudiaHash@users.noreply.github.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io> Co-authored-by: Claudia Holhos <clawww1996@gmail.com>
35 lines
1.1 KiB
JSON
35 lines
1.1 KiB
JSON
{
|
|
"description": "Update selected metadata of this data set. Updating metadata will create an on-chain transaction you have to approve in your wallet.",
|
|
"form": {
|
|
"success": "🎉 Successfully updated. 🎉",
|
|
"successAction": "Close",
|
|
"error": "Updating DDO failed.",
|
|
"data": [
|
|
{
|
|
"name": "name",
|
|
"label": "New Title",
|
|
"placeholder": "e.g. Shapes of Desert Plants",
|
|
"help": "Enter a concise title.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "New Description",
|
|
"help": "Add a thorough description with as much detail as possible. You can use [Markdown](https://daringfireball.net/projects/markdown/basics).",
|
|
"type": "textarea",
|
|
"rows": 10,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "timeout",
|
|
"label": "Timeout",
|
|
"help": "Define how long buyers should be able to download the data set again after the initial purchase.",
|
|
"type": "select",
|
|
"options": ["Forever", "1 day", "1 week", "1 month", "1 year"],
|
|
"sortOptions": false,
|
|
"required": true
|
|
}
|
|
]
|
|
}
|
|
}
|