DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#94)

This commit is contained in:
Osama Sayegh 2021-02-16 13:37:30 +03:00 committed by GitHub
parent 9d86b8b653
commit 5e24556b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View File

@ -1 +1,2 @@
2.7.0.beta3: 9d86b8b653a6e4715d9a1e4a39537cd114f6c799
2.6.0.beta2: 16873e708a3c924549e77f3fea011069358d1511 2.6.0.beta2: 16873e708a3c924549e77f3fea011069358d1511

View File

@ -47,6 +47,10 @@ const Query = RestModel.extend({
newParams[name] = pinfo["default"]; newParams[name] = pinfo["default"];
} else if (pinfo["type"] === "boolean") { } else if (pinfo["type"] === "boolean") {
newParams[name] = "false"; newParams[name] = "false";
} else if (pinfo["type"] === "user_id") {
newParams[name] = null;
} else if (pinfo["type"] === "user_list") {
newParams[name] = null;
} else { } else {
newParams[name] = ""; newParams[name] = "";
} }

View File

@ -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> <span class="param-name">{{info.identifier}}</span>

View File

@ -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> <span class="param-name">{{info.identifier}}</span>