2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-11 21:04:42 +08:00

FIX: reverts combobox placeholder and introduces noneLabel

noneLabels works almost like none but instead of actually adding a row in the list, it will only change the text displayed in the header, when there's no selection.
This commit is contained in:
Joffrey JAFFEUX 2018-03-29 13:42:00 +02:00 committed by GitHub
parent 125434dcdf
commit 3287ac77e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 41 additions and 23 deletions

View file

@ -262,7 +262,8 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi

@computed("none")
noneRowComputedContent(none) {
if (isNone(none)) { return null; }
if (isNone(none)) return null;

let noneRowComputedContent;

switch (typeof none) {