fix wrong javaVersion in download url (#225)
This commit is contained in:
Родитель
7f6bc3a102
Коммит
e71f0024b7
|
@ -69,7 +69,7 @@ export async function createPickBox<T extends Identifiable>(pickMetadata: IPickM
|
|||
if (pickMetadata.pickStep instanceof SpecifyLanguageStep) {
|
||||
pickMetadata.metadata.language = pickBox.selectedItems[0].label?.toLowerCase();
|
||||
} else if (pickMetadata.pickStep instanceof SpecifyJavaVersionStep) {
|
||||
pickMetadata.metadata.javaVersion = pickBox.selectedItems[0].label;
|
||||
pickMetadata.metadata.javaVersion = pickBox.selectedItems[0].value?.id;
|
||||
} else if (pickMetadata.pickStep instanceof SpecifyPackagingStep) {
|
||||
pickMetadata.metadata.packaging = pickBox.selectedItems[0].label?.toLowerCase();
|
||||
} else if (pickMetadata.pickStep instanceof SpecifyBootVersionStep) {
|
||||
|
|
|
@ -46,7 +46,14 @@ class ServiceManager {
|
|||
}
|
||||
|
||||
const sortedValues = values.filter(x => x.id === defaultLabel).concat(values.filter(x => x.id !== defaultLabel));
|
||||
return (type === MatadataType.BOOTVERSION) ? sortedValues.map(v => ({ value: v, label: v.name })) : sortedValues.map(v => ({ label: v.name }));
|
||||
switch (type) {
|
||||
case MatadataType.BOOTVERSION:
|
||||
return sortedValues.map(v => ({ value: v, label: v.name }));
|
||||
case MatadataType.JAVAVERSION:
|
||||
return sortedValues.map(v => ({ value: v, label: v.name }));
|
||||
default:
|
||||
return sortedValues.map(v => ({ label: v.name }));
|
||||
}
|
||||
}
|
||||
|
||||
public async getAvailableDependencies(serviceUrl: string, bootVersion: string): Promise<IDependency[]> {
|
||||
|
|
Загрузка…
Ссылка в новой задаче