File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
gui/src/dashboard/layouts Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
/** @file The context menu for an arbitrary {@link backendModule.Asset}. */
2
2
import * as React from 'react'
3
3
4
- import * as reactQuery from '@tanstack/react-query'
5
4
import * as toast from 'react-toastify'
6
5
7
6
import { useCopy } from '#/hooks/copyHooks'
@@ -133,22 +132,9 @@ export default function AssetContextMenu(props: AssetContextMenuProps) {
133
132
)
134
133
} )
135
134
136
- const { data } = reactQuery . useQuery ( {
137
- ...projectHooks . createGetProjectDetailsQuery ( {
138
- // This is safe because we disable the query when the asset is not a project.
139
- // see `enabled` property below.
140
- // eslint-disable-next-line no-restricted-syntax
141
- assetId : asset . id as backendModule . ProjectId ,
142
- backend,
143
- } ) ,
144
- enabled : asset . type === backendModule . AssetType . project && canOpenProjects ,
145
- } )
146
-
147
135
const isRunningProject =
148
- ( asset . type === backendModule . AssetType . project &&
149
- data &&
150
- backendModule . IS_OPENING_OR_OPENED [ data . state . type ] ) ??
151
- false
136
+ asset . type === backendModule . AssetType . project &&
137
+ backendModule . IS_OPENING_OR_OPENED [ asset . projectState . type ]
152
138
153
139
const canExecute =
154
140
category . type !== 'trash' &&
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const TRUSTED_HOSTS = [
16
16
'github.com' ,
17
17
'production-enso-domain.auth.eu-west-1.amazoncognito.com' ,
18
18
'production-enso-organizations-files.s3.amazonaws.com' ,
19
+ 'production-enso-projects-templates.s3.eu-west-1.amazonaws.com' ,
19
20
'pb-enso-domain.auth.eu-west-1.amazoncognito.com' ,
20
21
'7aqkn3tnbc.execute-api.eu-west-1.amazonaws.com' ,
21
22
'lkxuay3ha1.execute-api.eu-west-1.amazonaws.com' ,
You can’t perform that action at this time.
0 commit comments