1
0
Fork 0

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:
merefield 2019-10-21 11:58:31 +01:00 committet von GitHub
Commit d03f8c964f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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;
} }
}); });

Datei anzeigen

@ -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"