chore: 🤖 Update role edit view breadcrumb

This commit is contained in:
Susmitha Girumala committed 2020-06-24 15:51:55 -04:00
1 parent c099db0c5e
commit 51b16935c6
2 files changed
+4 -14

No files matched your search

@@ -1,18 +1,12 @@
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { alias } from '@ember/object/computed';
export default class OrgsOrgRolesRoleController extends Controller {
// =services
@service intl;
// =attributes
/**
* @type {string}
*/
get breadCrumb() {
return this.intl.t('resources.role');
}
@alias('model.name') breadCrumb;
}
+2 -6
View File
@@ -8,11 +8,7 @@ export default class OrgsOrgRolesRoute extends Route {
* @return {Promise[RoleModel]}
*/
model() {
return this.store.findAll('role').catch(() => {
// FIX ME: API response of "{}" generates following error:
// Error while processing route: orgs.org.roles.index
// Error: Assertion Failed: You made a 'findAll' request for 'role' records, but the adapter's response did not have any data
});
return this.store.findAll('role');
}
}