chore: 🤖 apply org icons to grant scope dropdown

This commit is contained in:
Randall Morey committed 2020-11-04 15:02:29 -05:00
1 parent 67b6cd7aa7
commit 09257bad9c
1 file changed
+4 -1
+4 -1
View File
@@ -54,13 +54,15 @@
</Rose::Form::HelperText>
<form.radioGroup @name="grant_scope_id" @selectedValue={{@model.grant_scope_id}} as |radioGroup|>
<Rose::Dropdown
@text={{concat (t "form.grant_scope.label") ": " this.selectedGrantScope.displayName}}
@text={{this.selectedGrantScope.displayName}}
@icon={{if this.selectedGrantScope.isProject "app-icons/project" "app-icons/org"}}
as |dropdown|>
{{#each @grantScopes as |grantScope|}}
<dropdown.item>
<radioGroup.radio
@label={{grantScope.model.displayName}}
@value={{grantScope.model.id}}
@icon={{unless grantScope.model.isProject "app-icons/org"}}
/>
</dropdown.item>
{{#each grantScope.subScopes as |subScope|}}
@@ -68,6 +70,7 @@
<radioGroup.radio
@label={{subScope.model.displayName}}
@value={{subScope.model.id}}
@icon={{unless subScope.model.isProject "app-icons/org"}}
/>
</dropdown.item>
{{#each subScope.subScopes as |subSubScope|}}