new site setting to allow admin to choose the label cue to show national flag images when using the drop-down to select flag
Dieser Commit ist enthalten in:
Ursprung
7e0c2b37f4
Commit
ce49a8ab94
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
|
@ -28,7 +28,7 @@ export default {
|
||||||
isFlagSelector() {
|
isFlagSelector() {
|
||||||
const field = this.get('field');
|
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)
|
//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
|
refresh: true
|
||||||
type: list
|
type: list
|
||||||
list_type: compact
|
list_type: compact
|
||||||
|
wizard_national_flags_label_cue:
|
||||||
|
client: true
|
||||||
|
default: "National"
|
||||||
|
|
Laden …
In neuem Issue referenzieren