mirror of
https://github.com/enso-org/enso.git
synced 2024-11-26 08:52:58 +03:00
WIP: Fix errors
This commit is contained in:
parent
33f0e9b390
commit
50bdd0a9a0
@ -75,6 +75,7 @@ export type MutationMethod = DefineBackendMethods<
|
||||
| 'deleteAsset'
|
||||
| 'deleteDatalink'
|
||||
| 'deleteInvitation'
|
||||
| 'deleteProjectExecution'
|
||||
| 'deleteTag'
|
||||
| 'deleteUser'
|
||||
| 'deleteUserGroup'
|
||||
|
@ -10,6 +10,7 @@ import inspectIcon from '#/assets/inspect.svg'
|
||||
import versionsIcon from '#/assets/versions.svg'
|
||||
|
||||
import { useEventCallback } from '#/hooks/eventCallbackHooks'
|
||||
import { ProjectExecutions } from '#/layouts/AssetProjectExecutions'
|
||||
import { useBackend } from '#/providers/BackendProvider'
|
||||
import {
|
||||
useAssetPanelProps,
|
||||
@ -74,9 +75,7 @@ export interface AssetPanelContextProps {
|
||||
readonly spotlightOn: AssetPropertiesSpotlight | null
|
||||
}
|
||||
|
||||
/**
|
||||
* Props for an {@link AssetPanel}.
|
||||
*/
|
||||
/** Props for an {@link AssetPanel}. */
|
||||
export interface AssetPanelProps {
|
||||
readonly backendType: BackendType
|
||||
readonly category: Category
|
||||
@ -131,9 +130,7 @@ export function AssetPanel(props: AssetPanelProps) {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* The internal implementation of the Asset Panel Tabs.
|
||||
*/
|
||||
/** The internal implementation of the Asset Panel Tabs. */
|
||||
const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: AssetPanelProps) {
|
||||
const { category } = props
|
||||
|
||||
@ -213,6 +210,10 @@ const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: Asset
|
||||
<AssetProjectSessions backend={backend} item={item} />
|
||||
</AssetPanelTabs.TabPanel>
|
||||
|
||||
<AssetPanelTabs.TabPanel id="executions" resetKeys={[item?.id]}>
|
||||
<ProjectExecutions backend={backend} item={item} />
|
||||
</AssetPanelTabs.TabPanel>
|
||||
|
||||
<AssetPanelTabs.TabPanel id="docs" resetKeys={[item?.id]}>
|
||||
<AssetDocs backend={backend} item={item} />
|
||||
</AssetPanelTabs.TabPanel>
|
||||
@ -253,6 +254,13 @@ const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: Asset
|
||||
isExpanded={isExpanded}
|
||||
onPress={expandTab}
|
||||
/>
|
||||
<AssetPanelTabs.Tab
|
||||
id="executions"
|
||||
icon={sessionsIcon}
|
||||
label={getText('executions')}
|
||||
isExpanded={isExpanded}
|
||||
onPress={expandTab}
|
||||
/>
|
||||
<AssetPanelTabs.Tab
|
||||
id="docs"
|
||||
icon={docsIcon}
|
||||
|
Loading…
Reference in New Issue
Block a user