Skip to content

Commit

Permalink
Remove cmd+k quick actions from instance detail page (#2305)
Browse files Browse the repository at this point in the history
remove instance stop/start/etc quick actions from instance detail page
  • Loading branch information
david-crespo authored Jul 2, 2024
1 parent a1a23da commit f30a3ba
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/pages/project/instances/instance/InstancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { MoreActionsMenu } from '~/components/MoreActionsMenu'
import { RefreshButton } from '~/components/RefreshButton'
import { RouteTabs, Tab } from '~/components/RouteTabs'
import { InstanceStatusBadge } from '~/components/StatusBadge'
import { getInstanceSelector, useInstanceSelector, useQuickActions } from '~/hooks'
import { getInstanceSelector, useInstanceSelector } from '~/hooks'
import { EmptyCell } from '~/table/cells/EmptyCell'
import { DateTime } from '~/ui/lib/DateTime'
import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
Expand Down Expand Up @@ -128,18 +128,6 @@ export function InstancePage() {
],
[instance, makeActions]
)
const quickActions = useMemo(
() =>
actions
// in the quick menu we do not show disabled actions
.filter((a) => !a.disabled)
// append "instance" to labels
// TODO: if these were in an "Instance actions" subsection they might not
// need the suffix for clarity
.map((a) => ({ onSelect: a.onActivate, value: a.label })),
[actions]
)
useQuickActions(quickActions)

const memory = filesize(instance.memory, { output: 'object', base: 2 })

Expand Down

0 comments on commit f30a3ba

Please sign in to comment.