Skip to content

Commit 0d6f727

Browse files
sukhwinder33445julianbrost
authored andcommitted
Plugin#ConfigOptions: Remove placeholder and use default instead
1 parent 10d5b1b commit 0d6f727

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cmd/channel/email/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (ch *Email) GetInfo() *plugin.Info {
109109
"en_US": "From",
110110
"de_DE": "Von",
111111
},
112-
Placeholder: "[email protected]",
112+
Default: "[email protected]",
113113
},
114114
}
115115

pkg/plugin/plugin.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ type ConfigOption struct {
3636
// An "en_US" locale must be given as a fallback
3737
Label map[string]string `json:"label"`
3838

39-
// Element placeholder
40-
Placeholder string `json:"placeholder,omitempty"`
41-
4239
// Element title: When the user moves the mouse pointer over an element, a tooltip is displayed with a given message.
4340
Help map[string]string `json:"help,omitempty"`
4441

45-
// Element default value: bool for checkbox, string for other elements
42+
// Element default: bool for checkbox default value, string for other elements (used as placeholder)
4643
Default any `json:"default,omitempty"`
4744

4845
// Set true if this element is required, omit otherwise

0 commit comments

Comments
 (0)