disable all actions on publish preview (#1257)

* disable all actions on publish preview

* remove asset actions disabled mechanism
This commit is contained in:
Matthias Kretschmann 2022-03-25 15:16:52 +00:00 committed by GitHub
parent 63f0b41006
commit 9df8ed49a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 16 deletions

View File

@ -150,25 +150,12 @@ export default function AssetActions({
/>
)
const tabs: TabsItem[] = [
{
title: 'Use',
content: UseContent
}
]
const tabs: TabsItem[] = [{ title: 'Use', content: UseContent }]
asset?.accessDetails?.type === 'dynamic' &&
tabs.push(
{
title: 'Pool',
content: <Pool />,
disabled: asset?.accessDetails.datatoken.name === ''
},
{
title: 'Trade',
content: <Trade />,
disabled: asset?.accessDetails.datatoken.name === ''
}
{ title: 'Pool', content: <Pool /> },
{ title: 'Trade', content: <Trade /> }
)
return (

View File

@ -4,6 +4,10 @@
margin-bottom: var(--spacer);
margin-left: calc(var(--spacer) / -4);
margin-right: calc(var(--spacer) / -4);
/* Disable all user actions as to not run into unintended
consequences of browsing away from publish. */
pointer-events: none;
}
@media (min-width: 60rem) {