diff --git a/ember/app/models/interest-category.js b/ember/app/models/interest-category.js index 5526d5cb8..a71637b35 100644 --- a/ember/app/models/interest-category.js +++ b/ember/app/models/interest-category.js @@ -4,7 +4,8 @@ import { localizedAttr, LocalizedModel } from "ember-localized-model"; export default class InterestCategoryModel extends LocalizedModel { @localizedAttr title; @attr description; - @hasMany interests; @attr archived; @attr public; + + @hasMany("interest", { inverse: "category", async: true }) interests; } diff --git a/ember/app/models/interest.js b/ember/app/models/interest.js index 8cddaf6cf..958051470 100644 --- a/ember/app/models/interest.js +++ b/ember/app/models/interest.js @@ -4,6 +4,8 @@ import { localizedAttr, LocalizedModel } from "ember-localized-model"; export default class InterestModel extends LocalizedModel { @localizedAttr title; @attr description; - @belongsTo("interest-category") category; @attr archived; + + @belongsTo("interest-category", { inverse: "interests", async: true }) + category; } diff --git a/ember/app/ui/application/route.js b/ember/app/ui/application/route.js index 29d528e7d..2f575ba80 100644 --- a/ember/app/ui/application/route.js +++ b/ember/app/ui/application/route.js @@ -11,7 +11,7 @@ export default class ApplicationRoute extends Route { await this.session.setup(); - const locale = localStorage.getItem("locale") ?? "en"; + const locale = localStorage.getItem("locale") ?? "de"; this.intl.setLocale([locale]); this.calumaOptions.registerComponentOverride({ diff --git a/ember/app/ui/components/identity-interests/template.hbs b/ember/app/ui/components/identity-interests/template.hbs index 1cf441dff..dea15061e 100644 --- a/ember/app/ui/components/identity-interests/template.hbs +++ b/ember/app/ui/components/identity-interests/template.hbs @@ -16,7 +16,16 @@