Przeglądaj źródła

change ShowIf to interface{}

Ivan Galakhov 4 lat temu
rodzic
commit
4dbbe3a95a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      internal/models/templates.go

+ 1 - 1
internal/models/templates.go

@@ -36,7 +36,7 @@ type FormTab struct {
 type FormSection struct {
 type FormSection struct {
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Name     string         `yaml:"name" json:"name"`
 	Name     string         `yaml:"name" json:"name"`
-	ShowIf   string         `yaml:"show_if" json:"show_if"`
+	ShowIf   interface{}    `yaml:"show_if" json:"show_if"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 }
 }