chore: 🤖 improve scopes/new titling - icu-6714 (#1407)
* chore: 🤖 improve scopes/new titling - icu-6714 ✅ Closes: icu-6714 * chore: 🤖 improve new scope link text
This commit is contained in:
1 parent
e8af948dc1
commit
d32a854a94
16 files changed
+105
-49
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user