mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Continue work on specs
This commit is contained in:
+4
-4
@@ -29,13 +29,13 @@
|
||||
cpus ??= $func.cpus;
|
||||
|
||||
let runtimes = await $runtimesList;
|
||||
let specs = await $specs;
|
||||
let allowedSpecs = await $specs;
|
||||
options = runtimes.runtimes.map((runtime) => ({
|
||||
label: `${runtime.name} - ${runtime.version}`,
|
||||
value: runtime.$id
|
||||
}));
|
||||
}));
|
||||
|
||||
memoryOptions = specs.memory.map((memory) =>
|
||||
memoryOptions = allowedSpecs.memory.map((memory) =>
|
||||
memory > 1024
|
||||
? {
|
||||
label: `${memory / 1024} GB`,
|
||||
@@ -47,7 +47,7 @@
|
||||
}
|
||||
);
|
||||
|
||||
cpuOptions = specs.cpus.map((cpu) => ({
|
||||
cpuOptions = allowedSpecs.cpus.map((cpu) => ({
|
||||
label: cpu === 1 ? `${cpu} CPU Cores` : `${cpu} CPU Core`,
|
||||
value: cpu
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user