Merge pull request #18 from merefield/juless_extensions
new site setting to allow admin to choose the label cue for nat flags
Dieser Commit ist enthalten in:
Commit
d03f8c964f
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
|
@ -28,7 +28,7 @@ export default {
|
|||
isFlagSelector() {
|
||||
const field = this.get('field');
|
||||
//TODO improve the way this detects a flag dropdown (currently it relies on the string 'Nation', e.g. 'Nationality' or 'National Flag' appearing in label)
|
||||
return (field.label.includes('Nation')) ? true : false;
|
||||
return (field.label.includes(Discourse.SiteSettings.wizard_national_flags_label_cue)) ? true : false;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -12,3 +12,6 @@ plugins:
|
|||
refresh: true
|
||||
type: list
|
||||
list_type: compact
|
||||
wizard_national_flags_label_cue:
|
||||
client: true
|
||||
default: "National"
|
||||
|
|
Laden …
In neuem Issue referenzieren