Skip to content
Snippets Groups Projects
Commit 250b7e3f authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-1946-ActionIconWidget' into 'master'

Добавлен виджет Иконка для поля icon в схеме коллекции "Настройки/Действия"

See merge request perxis/perxis-go!136
parents 1f18b522 3fc5a9e3
Branches feature/PRXS-1257-ManagedMongo
Tags v0.21.0
No related merge requests found
......@@ -25,7 +25,7 @@ func NewActionsCollection(spaceID, envID string) *collections.Collection {
"extension", field.String().SetTitle("Расширение (Deprecated)"),
"name", field.String().SetTitle("Название").SetTextSearch(true),
"description", field.String().SetTitle("Описание"),
"icon", field.String().SetTitle("Название иконки"),
"icon", field.String().SetTitle("Название иконки").WithUI(&field.UI{Widget: "Icon"}),
"image", references.Field([]string{"media"}).SetTitle("Изображение").WithUI(&field.UI{Widget: "Media"}),
"kind", field.Number(
field.NumberFormatInt,
......@@ -126,7 +126,7 @@ func NewExtensionsCollection(spaceID, envID string) *collections.Collection {
).SetTitle("Состояние").WithUI(&field.UI{Widget: "Select"}),
)
//UI
// UI
sch.Field.UI.ListView = &field.View{Options: map[string]interface{}{
"fields": []interface{}{"id", "title", "extension_state", "updated_at", "updated_by"},
"sort": []interface{}{"title"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment