chore: 🤖 Update role edit view breadcrumb
This commit is contained in:
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;
|
||||
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user