Files
threshold-ui/ui/admin/app/controllers/scopes/scope/scopes.js
T
Carlos Alcaide Corvo 8776b46277 Chore update eslint (#1045)
Update eslint and eslint-plugin-ember to their latest versions.
2022-04-13 14:17:46 -07:00

28 lines
671 B
JavaScript

import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
export default class ScopesScopeScopesController extends Controller {
// =services
@service intl;
// =attributes
/**
* @type {string}
*/
@computed('intl', 'model.currentScope.{isGlobal,isOrg}')
get breadCrumb() {
if (this.model.currentScope.isGlobal) {
return this.intl.t('resources.org.title_plural');
}
/* istanbul ignore else */
if (this.model.currentScope.isOrg) {
return this.intl.t('resources.project.title_plural');
}
/* istanbul ignore next */
return null;
}
}