feat: Add title to add-principals view

Cleanup comments after rebasing
This commit is contained in:
Susmitha Girumala committed 2020-09-01 16:12:46 -04:00
1 parent 7a79e4e820
commit dff67eddae
3 files changed
+10 -6

No files matched your search

@@ -14,6 +14,7 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route {
/**
* Empty out any previously loaded users and groups.
* (collectively, principals).
*/
beforeModel() {
this.store.unloadAll('user');
@@ -38,6 +39,7 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route {
/**
* Renders the add-principals-specific header template.
* Empties the actions and navigation outlets and renders a custom empty header.
* @override
*/
renderTemplate() {
@@ -62,7 +64,7 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route {
// =actions
/**
* Save principal IDs to current role.
* Save principal IDs to current role via the API.
* @param {RoleModel} role
* @param {[string]} principalIDs
*/
@@ -10,14 +10,14 @@
{{outlet "header"}}
</page.header>
<page.navigation>
{{outlet "navigation"}}
</page.navigation>
<page.actions>
{{outlet "actions"}}
</page.actions>
<page.navigation>
{{outlet "navigation"}}
</page.navigation>
<page.body>
{{outlet}}
</page.body>
@@ -1,7 +1,9 @@
{{title (t "actions.add-principals")}}
<Form::Role::AddPrincipals
@model={{@model.role}}
@users={{@model.users}}
@groups={{@model.groups}}
@submit={{route-action "addPrincipals" @model.role}}
@cancel={{route-action "cancel"}}
/>
/>