* chore: 🤖 improve scopes/new titling - icu-6714 ✅ Closes: icu-6714 * chore: 🤖 improve new scope link text
28 lines
646 B
JavaScript
28 lines
646 B
JavaScript
import Controller from '@ember/controller';
|
|
import { inject as service } from '@ember/service';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default class ScopesScopeScopesNewController extends Controller {
|
|
// =services
|
|
|
|
@service intl;
|
|
|
|
// =attributes
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
@computed('intl', 'model.{currentScope,isOrg,isProject}')
|
|
get breadCrumb() {
|
|
if (this.model.isOrg) {
|
|
return this.intl.t('resources.org.titles.new');
|
|
}
|
|
/* istanbul ignore else */
|
|
if (this.model.isProject) {
|
|
return this.intl.t('resources.project.titles.new');
|
|
}
|
|
/* istanbul ignore next */
|
|
return null;
|
|
}
|
|
}
|