Files
threshold-ui/ui/admin/app/controllers/scopes/scope/scopes/new.js
T
Randall Morey d32a854a94 chore: 🤖 improve scopes/new titling - icu-6714 (#1407)
* chore: 🤖 improve scopes/new titling - icu-6714

✅ Closes: icu-6714

* chore: 🤖 improve new scope link text
2022-11-03 18:37:42 -07:00

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;
}
}