Revert "Revert "DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#94)" (#102)" (#103)
Follow-up to https://github.com/discourse/discourse-data-explorer/pull/102. This is essentially a revert of that PR, the only difference is that the `.discourse-compatibility` file now pins the plugin to 60ffd4bc4d
for sites ≤ `2.7.0.beta3`.
This commit is contained in:
parent
60ffd4bc4d
commit
8ef3fa38d6
|
@ -1 +1,2 @@
|
|||
2.7.0.beta3: 60ffd4bc4d357b365cdb8a6764cec621f2edcf81
|
||||
2.6.0.beta2: 16873e708a3c924549e77f3fea011069358d1511
|
||||
|
|
|
@ -47,6 +47,10 @@ const Query = RestModel.extend({
|
|||
newParams[name] = pinfo["default"];
|
||||
} else if (pinfo["type"] === "boolean") {
|
||||
newParams[name] = "false";
|
||||
} else if (pinfo["type"] === "user_id") {
|
||||
newParams[name] = null;
|
||||
} else if (pinfo["type"] === "user_list") {
|
||||
newParams[name] = null;
|
||||
} else {
|
||||
newParams[name] = "";
|
||||
}
|
||||
|
|
|
@ -1,2 +1,8 @@
|
|||
{{user-selector usernames=value single="true"}}
|
||||
{{email-group-user-chooser
|
||||
value=value
|
||||
options=(hash
|
||||
maximum=1
|
||||
)
|
||||
onChange=(action (mut value))
|
||||
}}
|
||||
<span class="param-name">{{info.identifier}}</span>
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
{{user-selector usernames=value}}
|
||||
{{email-group-user-chooser
|
||||
value=value
|
||||
onChange=(action (mut value))
|
||||
}}
|
||||
<span class="param-name">{{info.identifier}}</span>
|
||||
|
|
Loading…
Reference in New Issue