From e8e2911a924c9f1b87e2779e85ccba5bd42d588e Mon Sep 17 00:00:00 2001 From: Lukas Moucka Date: Sat, 4 Dec 2021 19:35:39 +0100 Subject: [PATCH] Change order of docker images in JavaVersionModalFeature (#3782) This changes the order of the Docker images in JavaVersionModalFeature, and also sets the default state to Java 17. Previously it was Java 16, even though the first entry in the list was Java 8, that confused a lot of people --- .../server/features/JavaVersionModalFeature.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/scripts/components/server/features/JavaVersionModalFeature.tsx b/resources/scripts/components/server/features/JavaVersionModalFeature.tsx index 88de4f8a..efae064c 100644 --- a/resources/scripts/components/server/features/JavaVersionModalFeature.tsx +++ b/resources/scripts/components/server/features/JavaVersionModalFeature.tsx @@ -10,16 +10,16 @@ import { SocketEvent, SocketRequest } from '@/components/server/events'; import Select from '@/components/elements/Select'; const dockerImageList = [ - { name: 'Java 8', image: 'ghcr.io/pterodactyl/yolks:java_8' }, - { name: 'Java 11', image: 'ghcr.io/pterodactyl/yolks:java_11' }, - { name: 'Java 16', image: 'ghcr.io/pterodactyl/yolks:java_16' }, { name: 'Java 17', image: 'ghcr.io/pterodactyl/yolks:java_17' }, + { name: 'Java 16', image: 'ghcr.io/pterodactyl/yolks:java_16' }, + { name: 'Java 11', image: 'ghcr.io/pterodactyl/yolks:java_11' }, + { name: 'Java 8', image: 'ghcr.io/pterodactyl/yolks:java_8' }, ]; const JavaVersionModalFeature = () => { const [ visible, setVisible ] = useState(false); const [ loading, setLoading ] = useState(false); - const [ selectedVersion, setSelectedVersion ] = useState('ghcr.io/pterodactyl/yolks:java_16'); + const [ selectedVersion, setSelectedVersion ] = useState('ghcr.io/pterodactyl/yolks:java_17'); const uuid = ServerContext.useStoreState(state => state.server.data!.uuid); const status = ServerContext.useStoreState(state => state.status.value);