Working on using new data model
This commit is contained in:
@@ -88,14 +88,12 @@ func isRamType(size int, unit string) bool {
|
||||
}
|
||||
|
||||
func formatType(t string) string {
|
||||
switch t {
|
||||
case "ram":
|
||||
return "Random Access Memory"
|
||||
case "hdd":
|
||||
return "Hard Disk Drive"
|
||||
default:
|
||||
return t
|
||||
for _, assetType := range DescriptorTree.AssetTypes {
|
||||
if assetType.Id == t {
|
||||
return assetType.Name
|
||||
}
|
||||
}
|
||||
panic("unknown type")
|
||||
}
|
||||
|
||||
type SelectMenu struct {
|
||||
|
||||
Reference in New Issue
Block a user