Add the icon to the alteration edit page.
This commit is contained in:
parent
e81b66e725
commit
05a6b496cb
10 changed files with 63 additions and 22 deletions
|
|
@ -9,6 +9,7 @@ data class Alteration(
|
|||
val fields: List<Field>,
|
||||
) {
|
||||
data class MetaData(
|
||||
val icon: String?,
|
||||
val name: String,
|
||||
val description: String,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class AlterationJsonFactory(
|
|||
return Alteration.MetaData(
|
||||
name = json.name,
|
||||
description = json.description,
|
||||
icon = json.icon,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +62,7 @@ class AlterationJsonFactory(
|
|||
return AlterationJsonV1.AlterationMetadataJsonV1(
|
||||
name = data.name,
|
||||
description = data.description,
|
||||
icon = data.icon,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,5 +20,6 @@ data class AlterationJsonV1(
|
|||
data class AlterationMetadataJsonV1(
|
||||
val name: String,
|
||||
val description: String,
|
||||
val icon: String?,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue