fix(striker-ui): add server menu to dashboard server preview

main
Tsu-ba-me 1 year ago
parent a4f77f8e8e
commit afda1f6723
  1. 7
      striker-ui/pages/index.tsx

@ -16,6 +16,7 @@ import OutlinedInput from '../components/OutlinedInput';
import { Panel, PanelHeader } from '../components/Panels'; import { Panel, PanelHeader } from '../components/Panels';
import periodicFetch from '../lib/fetchers/periodicFetch'; import periodicFetch from '../lib/fetchers/periodicFetch';
import ProvisionServerDialog from '../components/ProvisionServerDialog'; import ProvisionServerDialog from '../components/ProvisionServerDialog';
import ServerMenu from '../components/ServerMenu';
import Spinner from '../components/Spinner'; import Spinner from '../components/Spinner';
import { HeaderText } from '../components/Text'; import { HeaderText } from '../components/Text';
import { last } from '../lib/time'; import { last } from '../lib/time';
@ -79,6 +80,12 @@ const createServerPreviewContainer = (servers: ServerListItem[]) => (
> >
{anvilName} {anvilName}
</Link>, </Link>,
<ServerMenu
key={`server_${serverUUID}_power_options`}
serverName={serverName}
serverState={serverState}
serverUuid={serverUUID}
/>,
]} ]}
hrefPreview={`/server?uuid=${serverUUID}&server_name=${serverName}&server_state=${serverState}&vnc=1`} hrefPreview={`/server?uuid=${serverUUID}&server_name=${serverName}&server_state=${serverState}&vnc=1`}
isExternalLoading={loading} isExternalLoading={loading}

Loading…
Cancel
Save