mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-13 06:19:15 +00:00
feat: primary images (#576)
* add support for primary images * fix locked loading state issue * add action to auto-set images
This commit is contained in:
parent
63a966c526
commit
318b8be192
34 changed files with 649 additions and 207 deletions
|
@ -24,6 +24,8 @@ func (Attachment) Fields() []ent.Field {
|
|||
field.Enum("type").
|
||||
Values("photo", "manual", "warranty", "attachment", "receipt").
|
||||
Default("attachment"),
|
||||
field.Bool("primary").
|
||||
Default(false),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue