From 370cc7311b11ef4fb034d8c6fa6ac0b2537be257 Mon Sep 17 00:00:00 2001 From: guidojw <35309288+guidojw@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:10:27 +0100 Subject: [PATCH 01/44] refactor: rename breadCrumb to breadcrumb in routes --- app/routes/activities/destroy.js | 2 +- app/routes/activities/edit.js | 2 +- app/routes/activities/generate-alias.js | 2 +- app/routes/activities/ical.js | 2 +- app/routes/activities/index.js | 2 +- app/routes/activities/new.js | 2 +- app/routes/activities/print-enrolled.js | 2 +- app/routes/activities/show.js | 2 +- app/routes/article-comments/destroy.js | 2 +- app/routes/articles/destroy.js | 2 +- app/routes/articles/edit.js | 2 +- app/routes/articles/index.js | 2 +- app/routes/articles/new.js | 2 +- app/routes/articles/show.js | 2 +- app/routes/books/destroy.js | 2 +- app/routes/books/edit.js | 2 +- app/routes/books/index.js | 2 +- app/routes/books/new.js | 2 +- app/routes/books/show.js | 2 +- app/routes/debit.js | 2 +- app/routes/debit/collections/destroy.js | 2 +- app/routes/debit/collections/edit.js | 2 +- app/routes/debit/collections/index.js | 2 +- app/routes/debit/collections/new.js | 2 +- app/routes/debit/collections/sepa.js | 2 +- app/routes/debit/collections/show.js | 2 +- app/routes/debit/mandates/edit.js | 2 +- app/routes/debit/mandates/index.js | 2 +- app/routes/debit/mandates/new.js | 2 +- app/routes/debit/mandates/show.js | 2 +- app/routes/debit/transactions/destroy.js | 2 +- app/routes/debit/transactions/edit.js | 2 +- app/routes/form.js | 2 +- app/routes/form/responses.js | 2 +- app/routes/form/responses/destroy.js | 2 +- app/routes/forum/categories.js | 2 +- app/routes/forum/categories/category.js | 2 +- app/routes/forum/categories/category/destroy.js | 2 +- app/routes/forum/categories/category/edit.js | 2 +- app/routes/forum/categories/category/threads.js | 2 +- app/routes/forum/categories/category/threads/index.js | 2 +- app/routes/forum/categories/category/threads/new.js | 2 +- app/routes/forum/categories/category/threads/thread.js | 2 +- app/routes/forum/categories/category/threads/thread/destroy.js | 2 +- app/routes/forum/categories/category/threads/thread/edit.js | 2 +- app/routes/forum/categories/category/threads/thread/posts.js | 2 +- .../forum/categories/category/threads/thread/posts/destroy.js | 2 +- .../forum/categories/category/threads/thread/posts/edit.js | 2 +- .../forum/categories/category/threads/thread/posts/index.js | 2 +- app/routes/forum/categories/index.js | 2 +- app/routes/forum/categories/new.js | 2 +- app/routes/groups/edit.js | 2 +- app/routes/groups/export.js | 2 +- app/routes/groups/index.js | 2 +- app/routes/groups/new.js | 2 +- app/routes/groups/show.js | 2 +- app/routes/mail-aliases/destroy.js | 2 +- app/routes/mail-aliases/edit.js | 2 +- app/routes/mail-aliases/index.js | 2 +- app/routes/mail-aliases/new.js | 2 +- app/routes/mail-aliases/show.js | 2 +- app/routes/mail-moderations/accept.js | 2 +- app/routes/mail-moderations/destroy.js | 2 +- app/routes/mail-moderations/index.js | 2 +- app/routes/mail-moderations/reject.js | 2 +- app/routes/mail-moderations/show.js | 2 +- app/routes/photo-albums.js | 2 +- app/routes/photo-albums/index.js | 2 +- app/routes/photo-albums/new.js | 2 +- app/routes/photo-albums/photo-album.js | 2 +- app/routes/photo-albums/photo-album/destroy.js | 2 +- app/routes/photo-albums/photo-album/edit.js | 2 +- app/routes/photo-albums/photo-album/photos.js | 2 +- app/routes/photo-albums/photo-album/photos/destroy.js | 2 +- app/routes/photo-albums/photo-album/photos/index.js | 2 +- app/routes/photo-albums/photo-album/photos/show.js | 2 +- app/routes/photo-comments/destroy.js | 2 +- app/routes/photo-comments/index.js | 2 +- app/routes/polls/destroy.js | 2 +- app/routes/polls/edit.js | 2 +- app/routes/polls/index.js | 2 +- app/routes/polls/new.js | 2 +- app/routes/polls/show.js | 2 +- app/routes/quickpost.js | 2 +- app/routes/sog/index.js | 2 +- app/routes/sog/name-trainer.js | 2 +- app/routes/static-pages/destroy.js | 2 +- app/routes/static-pages/edit.js | 2 +- app/routes/static-pages/index.js | 2 +- app/routes/static-pages/new.js | 2 +- app/routes/static-pages/show.js | 2 +- app/routes/users/batch.js | 2 +- app/routes/users/batch/new.js | 2 +- app/routes/users/destroy.js | 2 +- app/routes/users/edit.js | 2 +- app/routes/users/index.js | 2 +- app/routes/users/members.js | 2 +- app/routes/users/new.js | 2 +- app/routes/users/resend-activation.js | 2 +- app/routes/users/show.js | 2 +- app/routes/users/webdav.js | 2 +- 101 files changed, 101 insertions(+), 101 deletions(-) diff --git a/app/routes/activities/destroy.js b/app/routes/activities/destroy.js index 952f24c72..88566341a 100644 --- a/app/routes/activities/destroy.js +++ b/app/routes/activities/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyActivityRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activiteit verwijderen' }; + breadcrumb = { title: 'Activiteit verwijderen' }; canAccess() { return this.abilities.can('destroy activities'); diff --git a/app/routes/activities/edit.js b/app/routes/activities/edit.js index 1a8845f1e..8cd8c0647 100644 --- a/app/routes/activities/edit.js +++ b/app/routes/activities/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EdityActivityRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activiteit aanpassen' }; + breadcrumb = { title: 'Activiteit aanpassen' }; canAccess(model) { return this.abilities.can('edit activity', model); diff --git a/app/routes/activities/generate-alias.js b/app/routes/activities/generate-alias.js index cb4ff2e1d..96f0aa0e6 100644 --- a/app/routes/activities/generate-alias.js +++ b/app/routes/activities/generate-alias.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class GenerateAliasRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Creëer mailalias' }; + breadcrumb = { title: 'Creëer mailalias' }; canAccess(model) { return this.abilities.can('generate alias for activity', model); diff --git a/app/routes/activities/ical.js b/app/routes/activities/ical.js index 87aeea0ec..d836dd3bc 100644 --- a/app/routes/activities/ical.js +++ b/app/routes/activities/ical.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class IcalRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Agenda Ical' }; + breadcrumb = { title: 'Agenda Ical' }; canAccess() { return this.abilities.can('show ical activities'); diff --git a/app/routes/activities/index.js b/app/routes/activities/index.js index 664764953..2d1ad66ae 100644 --- a/app/routes/activities/index.js +++ b/app/routes/activities/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ActivityIndexRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activiteiten' }; + breadcrumb = { title: 'Activiteiten' }; queryParams = { search: { diff --git a/app/routes/activities/new.js b/app/routes/activities/new.js index 29220c9c8..516f5a6f2 100644 --- a/app/routes/activities/new.js +++ b/app/routes/activities/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewActivityRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activiteit aanmaken' }; + breadcrumb = { title: 'Activiteit aanmaken' }; canAccess() { return this.abilities.can('create activities'); diff --git a/app/routes/activities/print-enrolled.js b/app/routes/activities/print-enrolled.js index 9b971600e..45498dcf6 100644 --- a/app/routes/activities/print-enrolled.js +++ b/app/routes/activities/print-enrolled.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class PrintEnrolledRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Print inschrijvingen/streeplijst' }; + breadcrumb = { title: 'Print inschrijvingen/streeplijst' }; canAccess(model) { return this.abilities.can('edit activity', model); diff --git a/app/routes/activities/show.js b/app/routes/activities/show.js index 611ecac2f..a6c98feff 100644 --- a/app/routes/activities/show.js +++ b/app/routes/activities/show.js @@ -11,7 +11,7 @@ export default class ShowActivityRoute extends AuthenticatedRoute { this.formLoadOrCreateUtil = new FormLoadOrCreateUtil(this); } - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.activity.title }; } diff --git a/app/routes/article-comments/destroy.js b/app/routes/article-comments/destroy.js index 858e095ab..75caa8be3 100644 --- a/app/routes/article-comments/destroy.js +++ b/app/routes/article-comments/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyArticleCommentRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Artikel comment verwijderen' }; + breadcrumb = { title: 'Artikel comment verwijderen' }; canAccess() { return this.abilities.can('destroy article-comments'); diff --git a/app/routes/articles/destroy.js b/app/routes/articles/destroy.js index 95193a0e8..62f5623d2 100644 --- a/app/routes/articles/destroy.js +++ b/app/routes/articles/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Artikel verwijderen' }; + breadcrumb = { title: 'Artikel verwijderen' }; canAccess() { return this.abilities.can('destroy articles'); diff --git a/app/routes/articles/edit.js b/app/routes/articles/edit.js index 08c9970a4..419fb892a 100644 --- a/app/routes/articles/edit.js +++ b/app/routes/articles/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activiteit aanpassen' }; + breadcrumb = { title: 'Activiteit aanpassen' }; canAccess(model) { return this.abilities.can('edit article', model); diff --git a/app/routes/articles/index.js b/app/routes/articles/index.js index baa92ee31..0ffc5d709 100644 --- a/app/routes/articles/index.js +++ b/app/routes/articles/index.js @@ -5,7 +5,7 @@ import { inject as service } from '@ember/service'; export default class ArticlesIndexRoute extends ApplicationRoute { @service intl; - get breadCrumb() { + get breadcrumb() { return { title: capitalize(this.intl.t('model.article.name.other').toString()), }; diff --git a/app/routes/articles/new.js b/app/routes/articles/new.js index f676c1397..46594270e 100644 --- a/app/routes/articles/new.js +++ b/app/routes/articles/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Artikel aanmaken' }; + breadcrumb = { title: 'Artikel aanmaken' }; canAccess() { return this.abilities.can('create articles'); diff --git a/app/routes/articles/show.js b/app/routes/articles/show.js index 91b8ad564..6c8cf4b3f 100644 --- a/app/routes/articles/show.js +++ b/app/routes/articles/show.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class ShowArticleRoute extends ApplicationRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/books/destroy.js b/app/routes/books/destroy.js index 5afe9cf41..46263420b 100644 --- a/app/routes/books/destroy.js +++ b/app/routes/books/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyBookRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Boek verwijderen' }; + breadcrumb = { title: 'Boek verwijderen' }; canAccess() { return this.abilities.can('destroy books'); diff --git a/app/routes/books/edit.js b/app/routes/books/edit.js index 8d5826ddb..aa5e83c13 100644 --- a/app/routes/books/edit.js +++ b/app/routes/books/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditBookRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Boek aanpassen' }; + breadcrumb = { title: 'Boek aanpassen' }; canAccess(model) { return this.abilities.can('edit book', model); diff --git a/app/routes/books/index.js b/app/routes/books/index.js index c8e0f6c87..ac3323a12 100644 --- a/app/routes/books/index.js +++ b/app/routes/books/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class IndexBookRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Boeken' }; + breadcrumb = { title: 'Boeken' }; queryParams = { search: { diff --git a/app/routes/books/new.js b/app/routes/books/new.js index ef44c4bde..eb933f078 100644 --- a/app/routes/books/new.js +++ b/app/routes/books/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewBookRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Boek aanmaken' }; + breadcrumb = { title: 'Boek aanmaken' }; canAccess() { return this.abilities.can('create books'); diff --git a/app/routes/books/show.js b/app/routes/books/show.js index a65235ddb..a5f3bf4a6 100644 --- a/app/routes/books/show.js +++ b/app/routes/books/show.js @@ -10,7 +10,7 @@ export default class ShowBookRoute extends AuthenticatedRoute { this.formLoadOrCreateUtil = new FormLoadOrCreateUtil(this); } - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/debit.js b/app/routes/debit.js index ba811f73d..512599f33 100644 --- a/app/routes/debit.js +++ b/app/routes/debit.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class DebitRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/debit/collections/destroy.js b/app/routes/debit/collections/destroy.js index b769e1d0f..e6001ad16 100644 --- a/app/routes/debit/collections/destroy.js +++ b/app/routes/debit/collections/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyCollectionsRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Incasso aanpassen' }; + breadcrumb = { title: 'Incasso aanpassen' }; canAccess() { return this.abilities.can('destroy debit/collections'); diff --git a/app/routes/debit/collections/edit.js b/app/routes/debit/collections/edit.js index 533d4f079..a495ac883 100644 --- a/app/routes/debit/collections/edit.js +++ b/app/routes/debit/collections/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditCollectionRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Incasso aanpassen' }; + breadcrumb = { title: 'Incasso aanpassen' }; canAccess() { return this.abilities.can('edit debit/collections'); diff --git a/app/routes/debit/collections/index.js b/app/routes/debit/collections/index.js index dc619cb69..4d07ab94f 100644 --- a/app/routes/debit/collections/index.js +++ b/app/routes/debit/collections/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class CollectionsIndexRoute extends AuthenticatedRoute { - breadCrumb = { title: "Incasso's" }; + breadcrumb = { title: "Incasso's" }; get pageActions() { return [ diff --git a/app/routes/debit/collections/new.js b/app/routes/debit/collections/new.js index 03461dcdf..86dd848dd 100644 --- a/app/routes/debit/collections/new.js +++ b/app/routes/debit/collections/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewCollectionRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Incasso aanmaken' }; + breadcrumb = { title: 'Incasso aanmaken' }; canAccess() { return this.abilities.can('create debit/collections'); diff --git a/app/routes/debit/collections/sepa.js b/app/routes/debit/collections/sepa.js index bec3b7d58..ffad0670c 100644 --- a/app/routes/debit/collections/sepa.js +++ b/app/routes/debit/collections/sepa.js @@ -6,7 +6,7 @@ export default class SepaRoute extends AuthenticatedRoute { @service fetch; @service('file-saver') fileSaver; - breadCrumb = { title: 'Sepa downloaden' }; + breadcrumb = { title: 'Sepa downloaden' }; canAccess() { return this.abilities.can('download sepa debit/collections'); diff --git a/app/routes/debit/collections/show.js b/app/routes/debit/collections/show.js index 806efce3b..3b6002b14 100644 --- a/app/routes/debit/collections/show.js +++ b/app/routes/debit/collections/show.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class CollectionsIndexRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.name }; } diff --git a/app/routes/debit/mandates/edit.js b/app/routes/debit/mandates/edit.js index 6462f1067..bed39d385 100644 --- a/app/routes/debit/mandates/edit.js +++ b/app/routes/debit/mandates/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditMandateRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Mandaat aanpassen' }; + breadcrumb = { title: 'Mandaat aanpassen' }; canAccess() { return this.abilities.can('edit debit/mandates'); diff --git a/app/routes/debit/mandates/index.js b/app/routes/debit/mandates/index.js index 43cbc2b86..69f9d63e5 100644 --- a/app/routes/debit/mandates/index.js +++ b/app/routes/debit/mandates/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class MandatesRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Incasso mandaten' }; + breadcrumb = { title: 'Incasso mandaten' }; get pageActions() { return [ diff --git a/app/routes/debit/mandates/new.js b/app/routes/debit/mandates/new.js index 84332ec49..7ea8199c2 100644 --- a/app/routes/debit/mandates/new.js +++ b/app/routes/debit/mandates/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewMandateRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Mandaat aanmaken' }; + breadcrumb = { title: 'Mandaat aanmaken' }; canAccess() { return this.abilities.can('create debit/mandates'); diff --git a/app/routes/debit/mandates/show.js b/app/routes/debit/mandates/show.js index 3c8119f4c..0b42e51c3 100644 --- a/app/routes/debit/mandates/show.js +++ b/app/routes/debit/mandates/show.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class CollectionsIndexRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.id }; } diff --git a/app/routes/debit/transactions/destroy.js b/app/routes/debit/transactions/destroy.js index 14e7a3a58..c8c9323b3 100644 --- a/app/routes/debit/transactions/destroy.js +++ b/app/routes/debit/transactions/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyTransactionRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Transactie verwijderen' }; + breadcrumb = { title: 'Transactie verwijderen' }; canAccess() { return this.abilities.can('destroy debit/transactions'); diff --git a/app/routes/debit/transactions/edit.js b/app/routes/debit/transactions/edit.js index 311688dc6..3c4dbe36f 100644 --- a/app/routes/debit/transactions/edit.js +++ b/app/routes/debit/transactions/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditTransactionRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Transactie aanpassen' }; + breadcrumb = { title: 'Transactie aanpassen' }; canAccess() { return this.abilities.can('edit debit/transactions'); diff --git a/app/routes/form.js b/app/routes/form.js index 57f1cd412..f2c27c85f 100644 --- a/app/routes/form.js +++ b/app/routes/form.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class FormRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/form/responses.js b/app/routes/form/responses.js index fce25c16a..36d0b16ff 100644 --- a/app/routes/form/responses.js +++ b/app/routes/form/responses.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class FormResponseRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/form/responses/destroy.js b/app/routes/form/responses/destroy.js index b7580c6be..f3233d979 100644 --- a/app/routes/form/responses/destroy.js +++ b/app/routes/form/responses/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyFormResponseRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Formulierantwoord verwijderen' }; + breadcrumb = { title: 'Formulierantwoord verwijderen' }; canAccess(model) { return this.abilities.can('destroy form/response', model); diff --git a/app/routes/forum/categories.js b/app/routes/forum/categories.js index aadd45ccb..503ebb5e2 100644 --- a/app/routes/forum/categories.js +++ b/app/routes/forum/categories.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class CategoriesRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/forum/categories/category.js b/app/routes/forum/categories/category.js index 2105bc875..9e9ed1a66 100644 --- a/app/routes/forum/categories/category.js +++ b/app/routes/forum/categories/category.js @@ -3,7 +3,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class CategoryRoute extends AuthenticatedRoute { queryParams = {}; - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.name }; } diff --git a/app/routes/forum/categories/category/destroy.js b/app/routes/forum/categories/category/destroy.js index 0b54302ae..6c172713a 100644 --- a/app/routes/forum/categories/category/destroy.js +++ b/app/routes/forum/categories/category/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyCategoryRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Categorie verwijderen' }; + breadcrumb = { title: 'Categorie verwijderen' }; canAccess() { return this.abilities.can('destroy forum/categories'); diff --git a/app/routes/forum/categories/category/edit.js b/app/routes/forum/categories/category/edit.js index 83cac32bb..b113dbe9f 100644 --- a/app/routes/forum/categories/category/edit.js +++ b/app/routes/forum/categories/category/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditCategoryRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Categorie aanpassen' }; + breadcrumb = { title: 'Categorie aanpassen' }; canAccess() { return this.abilities.can('edit forum/categories'); diff --git a/app/routes/forum/categories/category/threads.js b/app/routes/forum/categories/category/threads.js index 96ab0ce36..7932c5c42 100644 --- a/app/routes/forum/categories/category/threads.js +++ b/app/routes/forum/categories/category/threads.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class ThreadsRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/forum/categories/category/threads/index.js b/app/routes/forum/categories/category/threads/index.js index ef53fc107..25c67a181 100644 --- a/app/routes/forum/categories/category/threads/index.js +++ b/app/routes/forum/categories/category/threads/index.js @@ -2,7 +2,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; import { assign } from '@ember/polyfills'; export default class ThreadIndexRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.name }; } diff --git a/app/routes/forum/categories/category/threads/new.js b/app/routes/forum/categories/category/threads/new.js index 4ddd41ac6..d1c7ae78f 100644 --- a/app/routes/forum/categories/category/threads/new.js +++ b/app/routes/forum/categories/category/threads/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewTopicRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Topic aanmaken' }; + breadcrumb = { title: 'Topic aanmaken' }; canAccess() { return this.abilities.can('create forum/thread'); diff --git a/app/routes/forum/categories/category/threads/thread.js b/app/routes/forum/categories/category/threads/thread.js index a93f01537..c045b58f0 100644 --- a/app/routes/forum/categories/category/threads/thread.js +++ b/app/routes/forum/categories/category/threads/thread.js @@ -3,7 +3,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ThreadRoute extends AuthenticatedRoute { queryParams = {}; - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/forum/categories/category/threads/thread/destroy.js b/app/routes/forum/categories/category/threads/thread/destroy.js index 724faea4a..fd0344837 100644 --- a/app/routes/forum/categories/category/threads/thread/destroy.js +++ b/app/routes/forum/categories/category/threads/thread/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyTopicRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Topic verwijderen' }; + breadcrumb = { title: 'Topic verwijderen' }; canAccess() { return this.abilities.can('destroy forum/threads'); diff --git a/app/routes/forum/categories/category/threads/thread/edit.js b/app/routes/forum/categories/category/threads/thread/edit.js index 2662be6f3..eddd644d4 100644 --- a/app/routes/forum/categories/category/threads/thread/edit.js +++ b/app/routes/forum/categories/category/threads/thread/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditTopicRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Topic aanpassen' }; + breadcrumb = { title: 'Topic aanpassen' }; canAccess() { return this.abilities.can('edit forum/threads'); diff --git a/app/routes/forum/categories/category/threads/thread/posts.js b/app/routes/forum/categories/category/threads/thread/posts.js index de97256e9..ae8d25492 100644 --- a/app/routes/forum/categories/category/threads/thread/posts.js +++ b/app/routes/forum/categories/category/threads/thread/posts.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class PostsRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/forum/categories/category/threads/thread/posts/destroy.js b/app/routes/forum/categories/category/threads/thread/posts/destroy.js index d88a0acc2..25a3308e9 100644 --- a/app/routes/forum/categories/category/threads/thread/posts/destroy.js +++ b/app/routes/forum/categories/category/threads/thread/posts/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyPostRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Forumbericht verwijderen' }; + breadcrumb = { title: 'Forumbericht verwijderen' }; canAccess() { return this.abilities.can('destroy forum/posts'); diff --git a/app/routes/forum/categories/category/threads/thread/posts/edit.js b/app/routes/forum/categories/category/threads/thread/posts/edit.js index ca1b86c2d..a2642b866 100644 --- a/app/routes/forum/categories/category/threads/thread/posts/edit.js +++ b/app/routes/forum/categories/category/threads/thread/posts/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditPostRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Forumbericht aanpassen' }; + breadcrumb = { title: 'Forumbericht aanpassen' }; canAccess(model) { return this.abilities.can('edit forum/post', model); diff --git a/app/routes/forum/categories/category/threads/thread/posts/index.js b/app/routes/forum/categories/category/threads/thread/posts/index.js index dc8ca0346..013c7b40a 100644 --- a/app/routes/forum/categories/category/threads/thread/posts/index.js +++ b/app/routes/forum/categories/category/threads/thread/posts/index.js @@ -10,7 +10,7 @@ export default class PostIndexRoute extends AuthenticatedRoute { @service router; @service fetch; - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/forum/categories/index.js b/app/routes/forum/categories/index.js index aa440d304..787a3a697 100644 --- a/app/routes/forum/categories/index.js +++ b/app/routes/forum/categories/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ForumIndexRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Forum' }; + breadcrumb = { title: 'Forum' }; get pageActions() { return [ diff --git a/app/routes/forum/categories/new.js b/app/routes/forum/categories/new.js index a23a33af1..c83b218b3 100644 --- a/app/routes/forum/categories/new.js +++ b/app/routes/forum/categories/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewCategoryRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Categorie aanmaken' }; + breadcrumb = { title: 'Categorie aanmaken' }; canAccess() { return this.abilities.can('create forum/categories'); diff --git a/app/routes/groups/edit.js b/app/routes/groups/edit.js index d0088d360..1c79dccd9 100644 --- a/app/routes/groups/edit.js +++ b/app/routes/groups/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewGroupRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Groep aanpassen' }; + breadcrumb = { title: 'Groep aanpassen' }; canAccess(model) { return this.abilities.can('edit group', model); diff --git a/app/routes/groups/export.js b/app/routes/groups/export.js index f2e5d8354..12e8efee9 100644 --- a/app/routes/groups/export.js +++ b/app/routes/groups/export.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ExportGroupRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: `${this.controller.model.name} exporteren` }; } diff --git a/app/routes/groups/index.js b/app/routes/groups/index.js index dfec544e8..9a249da27 100644 --- a/app/routes/groups/index.js +++ b/app/routes/groups/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class GroupIndexRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Groepen' }; + breadcrumb = { title: 'Groepen' }; queryParams = { search: { diff --git a/app/routes/groups/new.js b/app/routes/groups/new.js index 005ff0627..4e7ff7313 100644 --- a/app/routes/groups/new.js +++ b/app/routes/groups/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewGroupRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Groep aanmaken' }; + breadcrumb = { title: 'Groep aanmaken' }; canAccess() { return this.abilities.can('create groups'); diff --git a/app/routes/groups/show.js b/app/routes/groups/show.js index 7b0611ecd..e9defb649 100644 --- a/app/routes/groups/show.js +++ b/app/routes/groups/show.js @@ -2,7 +2,7 @@ import { all } from 'rsvp'; import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ShowGroupRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.name }; } diff --git a/app/routes/mail-aliases/destroy.js b/app/routes/mail-aliases/destroy.js index 7c9141e9f..877059737 100644 --- a/app/routes/mail-aliases/destroy.js +++ b/app/routes/mail-aliases/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyMailAliasRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Mail-alias verwijderen' }; + breadcrumb = { title: 'Mail-alias verwijderen' }; canAccess() { return this.abilities.can('destroy mail-aliases'); diff --git a/app/routes/mail-aliases/edit.js b/app/routes/mail-aliases/edit.js index 6364ab773..bea1b700f 100644 --- a/app/routes/mail-aliases/edit.js +++ b/app/routes/mail-aliases/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditMailAliasRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Mail-alias aanpassen' }; + breadcrumb = { title: 'Mail-alias aanpassen' }; canAccess(model) { return this.abilities.can('edit mail-alias', model); diff --git a/app/routes/mail-aliases/index.js b/app/routes/mail-aliases/index.js index 4bfb8679d..73d3302df 100644 --- a/app/routes/mail-aliases/index.js +++ b/app/routes/mail-aliases/index.js @@ -3,7 +3,7 @@ import { inject as service } from '@ember/service'; export default class MailAliasIndexRoute extends ApplicationRoute { @service intl; - breadCrumb = { title: 'Mail-aliassen' }; + breadcrumb = { title: 'Mail-aliassen' }; get pageActions() { return [ diff --git a/app/routes/mail-aliases/new.js b/app/routes/mail-aliases/new.js index 51e772c01..ea99b8434 100644 --- a/app/routes/mail-aliases/new.js +++ b/app/routes/mail-aliases/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewMailAliasRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Mail-alias aanmaken' }; + breadcrumb = { title: 'Mail-alias aanmaken' }; canAccess() { return this.abilities.can('create mail-aliases'); diff --git a/app/routes/mail-aliases/show.js b/app/routes/mail-aliases/show.js index c53051945..7eefc12ca 100644 --- a/app/routes/mail-aliases/show.js +++ b/app/routes/mail-aliases/show.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ShowMailAliasRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.email }; } diff --git a/app/routes/mail-moderations/accept.js b/app/routes/mail-moderations/accept.js index e58f57008..df0402b2c 100644 --- a/app/routes/mail-moderations/accept.js +++ b/app/routes/mail-moderations/accept.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class AcceptModerationRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Moderatieverzoek goedkeuren' }; + breadcrumb = { title: 'Moderatieverzoek goedkeuren' }; canAccess() { return this.abilities.can('accept mail-moderations'); diff --git a/app/routes/mail-moderations/destroy.js b/app/routes/mail-moderations/destroy.js index 9b572fcd2..41b2473dc 100644 --- a/app/routes/mail-moderations/destroy.js +++ b/app/routes/mail-moderations/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyModerationRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Moderatieverzoek negeren' }; + breadcrumb = { title: 'Moderatieverzoek negeren' }; canAccess() { return this.abilities.can('destroy mail-moderations'); diff --git a/app/routes/mail-moderations/index.js b/app/routes/mail-moderations/index.js index 44fc81474..9a363b729 100644 --- a/app/routes/mail-moderations/index.js +++ b/app/routes/mail-moderations/index.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class ModerationIndexRoute extends ApplicationRoute { - breadCrumb = { title: 'Mailmoderatie' }; + breadcrumb = { title: 'Mailmoderatie' }; canAccess() { return this.abilities.can('show mail-moderations'); diff --git a/app/routes/mail-moderations/reject.js b/app/routes/mail-moderations/reject.js index ccc7af73f..91742a345 100644 --- a/app/routes/mail-moderations/reject.js +++ b/app/routes/mail-moderations/reject.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class RejectModerationRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Moderatieverzoek afwijzen' }; + breadcrumb = { title: 'Moderatieverzoek afwijzen' }; canAccess() { return this.abilities.can('reject mail-moderations'); diff --git a/app/routes/mail-moderations/show.js b/app/routes/mail-moderations/show.js index 156d65be3..5330903e3 100644 --- a/app/routes/mail-moderations/show.js +++ b/app/routes/mail-moderations/show.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ShowModerationRoute extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.subject }; } diff --git a/app/routes/photo-albums.js b/app/routes/photo-albums.js index 11063579c..c25bb7718 100644 --- a/app/routes/photo-albums.js +++ b/app/routes/photo-albums.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class PhotoAlbumsRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/photo-albums/index.js b/app/routes/photo-albums/index.js index e882c9a8e..0754f1b0c 100644 --- a/app/routes/photo-albums/index.js +++ b/app/routes/photo-albums/index.js @@ -5,7 +5,7 @@ import { inject as service } from '@ember/service'; export default class ArticlesIndexRoute extends ApplicationRoute { @service intl; - get breadCrumb() { + get breadcrumb() { return { title: capitalize(this.intl.t('model.photoAlbum.name.other').toString()), }; diff --git a/app/routes/photo-albums/new.js b/app/routes/photo-albums/new.js index 22ae62e24..0bdf0238a 100644 --- a/app/routes/photo-albums/new.js +++ b/app/routes/photo-albums/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewPhotoAlbumRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Foto album aanmaken' }; + breadcrumb = { title: 'Foto album aanmaken' }; canAccess() { return this.abilities.can('create photo-album'); diff --git a/app/routes/photo-albums/photo-album.js b/app/routes/photo-albums/photo-album.js index 49eb2c85e..35d3d8542 100644 --- a/app/routes/photo-albums/photo-album.js +++ b/app/routes/photo-albums/photo-album.js @@ -2,7 +2,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class PhotoAlbumSubRoute extends ApplicationRoute { queryParams = {}; - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/photo-albums/photo-album/destroy.js b/app/routes/photo-albums/photo-album/destroy.js index 20437d1a6..d2a10a9bb 100644 --- a/app/routes/photo-albums/photo-album/destroy.js +++ b/app/routes/photo-albums/photo-album/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Foto album verwijderen' }; + breadcrumb = { title: 'Foto album verwijderen' }; canAccess() { return this.abilities.can('destroy photo-albums'); diff --git a/app/routes/photo-albums/photo-album/edit.js b/app/routes/photo-albums/photo-album/edit.js index 65170cb29..655d6e277 100644 --- a/app/routes/photo-albums/photo-album/edit.js +++ b/app/routes/photo-albums/photo-album/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditPhotoAlbumRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Foto album aanpassen' }; + breadcrumb = { title: 'Foto album aanpassen' }; canAccess(model) { return this.abilities.can('edit photo-albums', model); diff --git a/app/routes/photo-albums/photo-album/photos.js b/app/routes/photo-albums/photo-album/photos.js index 48eaa53f0..72f9bd22c 100644 --- a/app/routes/photo-albums/photo-album/photos.js +++ b/app/routes/photo-albums/photo-album/photos.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class PhotosRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/photo-albums/photo-album/photos/destroy.js b/app/routes/photo-albums/photo-album/photos/destroy.js index 7d54abcd5..34742923c 100644 --- a/app/routes/photo-albums/photo-album/photos/destroy.js +++ b/app/routes/photo-albums/photo-album/photos/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Foto verwijderen' }; + breadcrumb = { title: 'Foto verwijderen' }; canAccess() { return this.abilities.can('destroy photos'); diff --git a/app/routes/photo-albums/photo-album/photos/index.js b/app/routes/photo-albums/photo-album/photos/index.js index 4358784f6..c612f0d86 100644 --- a/app/routes/photo-albums/photo-album/photos/index.js +++ b/app/routes/photo-albums/photo-album/photos/index.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class PhotosIndexRoute extends ApplicationRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/photo-albums/photo-album/photos/show.js b/app/routes/photo-albums/photo-album/photos/show.js index 90842d78f..ca41ba8fb 100644 --- a/app/routes/photo-albums/photo-album/photos/show.js +++ b/app/routes/photo-albums/photo-album/photos/show.js @@ -9,7 +9,7 @@ import { export default class ShowPhotosRoute extends ApplicationRoute { @service intl; - get breadCrumb() { + get breadcrumb() { const photo = this.controller.model; const allAlbumPhotos = this.controller.model.photoAlbum.get('sortedPhotos'); const photoAlbumPhotosLength = allAlbumPhotos.get('length'); diff --git a/app/routes/photo-comments/destroy.js b/app/routes/photo-comments/destroy.js index 16913b218..e84659321 100644 --- a/app/routes/photo-comments/destroy.js +++ b/app/routes/photo-comments/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyArticleRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Fotoreactie verwijderen' }; + breadcrumb = { title: 'Fotoreactie verwijderen' }; canAccess() { return this.abilities.can('destroy photo-comments'); diff --git a/app/routes/photo-comments/index.js b/app/routes/photo-comments/index.js index 54a98b0cd..dbb416410 100644 --- a/app/routes/photo-comments/index.js +++ b/app/routes/photo-comments/index.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class PhotoCommentsIndexRoute extends ApplicationRoute { - breadCrumb = { title: 'Fotoreacties' }; + breadcrumb = { title: 'Fotoreacties' }; canAccess() { return this.abilities.can('show photo-comments'); diff --git a/app/routes/polls/destroy.js b/app/routes/polls/destroy.js index b2841ab66..27edf1c26 100644 --- a/app/routes/polls/destroy.js +++ b/app/routes/polls/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyPollRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Poll verwijderen' }; + breadcrumb = { title: 'Poll verwijderen' }; canAccess() { return this.abilities.can('destroy polls'); diff --git a/app/routes/polls/edit.js b/app/routes/polls/edit.js index 69344befb..ef7ea7d31 100644 --- a/app/routes/polls/edit.js +++ b/app/routes/polls/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditMailAliasRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Poll aanpassen' }; + breadcrumb = { title: 'Poll aanpassen' }; canAccess(model) { return this.abilities.can('edit poll', model); diff --git a/app/routes/polls/index.js b/app/routes/polls/index.js index a7c97c2e5..4e17db81d 100644 --- a/app/routes/polls/index.js +++ b/app/routes/polls/index.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class MailAliasIndexRoute extends ApplicationRoute { - breadCrumb = { title: 'Polls' }; + breadcrumb = { title: 'Polls' }; get pageActions() { return [ diff --git a/app/routes/polls/new.js b/app/routes/polls/new.js index 5e39423ab..edf225159 100644 --- a/app/routes/polls/new.js +++ b/app/routes/polls/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewPollRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Poll aanmaken' }; + breadcrumb = { title: 'Poll aanmaken' }; canAccess() { return this.abilities.can('create polls'); diff --git a/app/routes/polls/show.js b/app/routes/polls/show.js index 54906dd31..47bd5bf5a 100644 --- a/app/routes/polls/show.js +++ b/app/routes/polls/show.js @@ -11,7 +11,7 @@ export default class ShowPollsRoute extends AuthenticatedRoute { this.formLoadOrCreateUtil = new FormLoadOrCreateUtil(this); } - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.poll.question.question }; } diff --git a/app/routes/quickpost.js b/app/routes/quickpost.js index 5767ea5e1..170104311 100644 --- a/app/routes/quickpost.js +++ b/app/routes/quickpost.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class QuickpostRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Quickpost' }; + breadcrumb = { title: 'Quickpost' }; canAccess() { return this.abilities.can('show quickpost-messages'); diff --git a/app/routes/sog/index.js b/app/routes/sog/index.js index e9ebd3b76..6e9f15827 100644 --- a/app/routes/sog/index.js +++ b/app/routes/sog/index.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class SogIndexRoute extends ApplicationRoute { - breadCrumb = { title: 'SOG' }; + breadcrumb = { title: 'SOG' }; canAccess() { return this.abilities.can('show sog'); diff --git a/app/routes/sog/name-trainer.js b/app/routes/sog/name-trainer.js index 3ca2f3db9..46f4a351e 100644 --- a/app/routes/sog/name-trainer.js +++ b/app/routes/sog/name-trainer.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class SogIndexRoute extends ApplicationRoute { - breadCrumb = { title: 'Namen leren' }; + breadcrumb = { title: 'Namen leren' }; canAccess() { return this.abilities.can('show sog/name-trainer'); diff --git a/app/routes/static-pages/destroy.js b/app/routes/static-pages/destroy.js index 6ac0c3ad0..472b3f1e9 100644 --- a/app/routes/static-pages/destroy.js +++ b/app/routes/static-pages/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyStaticPageRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Informatie pagina verwijderen' }; + breadcrumb = { title: 'Informatie pagina verwijderen' }; canAccess() { return this.abilities.can('destroy static-pages'); diff --git a/app/routes/static-pages/edit.js b/app/routes/static-pages/edit.js index 0070ab635..336a2d8f1 100644 --- a/app/routes/static-pages/edit.js +++ b/app/routes/static-pages/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditStaticPageRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Informatie pagina aanpassen' }; + breadcrumb = { title: 'Informatie pagina aanpassen' }; canAccess() { return this.abilities.can('edit static-pages'); diff --git a/app/routes/static-pages/index.js b/app/routes/static-pages/index.js index 2dc91126a..c885d8aa0 100644 --- a/app/routes/static-pages/index.js +++ b/app/routes/static-pages/index.js @@ -5,7 +5,7 @@ import { capitalize } from '@ember/string'; export default class StaticPagesIndexRoute extends ApplicationRoute { @service intl; - get breadCrumb() { + get breadcrumb() { return { title: capitalize(this.intl.t('model.staticPage.name.other').toString()), }; diff --git a/app/routes/static-pages/new.js b/app/routes/static-pages/new.js index 94522722e..00c11e81c 100644 --- a/app/routes/static-pages/new.js +++ b/app/routes/static-pages/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewStaticPageRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Informatie pagina aanmaken' }; + breadcrumb = { title: 'Informatie pagina aanmaken' }; canAccess() { return this.abilities.can('create static-pages'); diff --git a/app/routes/static-pages/show.js b/app/routes/static-pages/show.js index ccb7c7a4a..959a21841 100644 --- a/app/routes/static-pages/show.js +++ b/app/routes/static-pages/show.js @@ -1,7 +1,7 @@ import { ApplicationRoute } from 'amber-ui/routes/application/application'; export default class ShowStaticPagesRoute extends ApplicationRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.title }; } diff --git a/app/routes/users/batch.js b/app/routes/users/batch.js index 2e59471b6..c06f82ac0 100644 --- a/app/routes/users/batch.js +++ b/app/routes/users/batch.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; export default class BatchRoute extends Route { - breadCrumb = null; + breadcrumb = null; } diff --git a/app/routes/users/batch/new.js b/app/routes/users/batch/new.js index 19a543fab..9b8ca4e51 100644 --- a/app/routes/users/batch/new.js +++ b/app/routes/users/batch/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditStaticPageRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Batch gebruikers uploaden' }; + breadcrumb = { title: 'Batch gebruikers uploaden' }; canAccess() { return this.abilities.can('batch upload users'); diff --git a/app/routes/users/destroy.js b/app/routes/users/destroy.js index 648375f81..e00925381 100644 --- a/app/routes/users/destroy.js +++ b/app/routes/users/destroy.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class DestroyUserRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Lid verwijderen' }; + breadcrumb = { title: 'Lid verwijderen' }; canAccess(model) { return this.abilities.can('destroy user', model); diff --git a/app/routes/users/edit.js b/app/routes/users/edit.js index 1037fa213..1bce12dcb 100644 --- a/app/routes/users/edit.js +++ b/app/routes/users/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditUserRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Lid aanpassen' }; + breadcrumb = { title: 'Lid aanpassen' }; get tabItems() { const user = this.controller.model; diff --git a/app/routes/users/index.js b/app/routes/users/index.js index ad760a9f0..502d0a300 100644 --- a/app/routes/users/index.js +++ b/app/routes/users/index.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class UserIndexRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Gebruikers' }; + breadcrumb = { title: 'Gebruikers' }; get pageActions() { return [ diff --git a/app/routes/users/members.js b/app/routes/users/members.js index 84204e6de..e5e9fe80e 100644 --- a/app/routes/users/members.js +++ b/app/routes/users/members.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class MembersRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Leden' }; + breadcrumb = { title: 'Leden' }; get pageActions() { return [ diff --git a/app/routes/users/new.js b/app/routes/users/new.js index c6124d0ab..f6f7aa4e2 100644 --- a/app/routes/users/new.js +++ b/app/routes/users/new.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class NewUserRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Gebruiker aanmaken' }; + breadcrumb = { title: 'Gebruiker aanmaken' }; canAccess() { return this.abilities.can('create users'); diff --git a/app/routes/users/resend-activation.js b/app/routes/users/resend-activation.js index b3aa96c2f..95fca1c78 100644 --- a/app/routes/users/resend-activation.js +++ b/app/routes/users/resend-activation.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ResendActivationRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Activatiecode hersturen' }; + breadcrumb = { title: 'Activatiecode hersturen' }; canAccess(model) { return this.abilities.can('resend activation code of user', model); diff --git a/app/routes/users/show.js b/app/routes/users/show.js index d9c47844d..ca043aa13 100644 --- a/app/routes/users/show.js +++ b/app/routes/users/show.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class ShowUserRouter extends AuthenticatedRoute { - get breadCrumb() { + get breadcrumb() { return { title: this.controller.model.fullName }; } diff --git a/app/routes/users/webdav.js b/app/routes/users/webdav.js index f64b63e23..43739ac88 100644 --- a/app/routes/users/webdav.js +++ b/app/routes/users/webdav.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class WebdavRoute extends AuthenticatedRoute { - breadCrumb = { title: 'Contactsynchronisatie' }; + breadcrumb = { title: 'Contactsynchronisatie' }; canAccess() { return this.abilities.can('show webdav users'); From b9d05242b21eeca5a768f003eb524221fe469b37 Mon Sep 17 00:00:00 2001 From: guidojw <35309288+guidojw@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:10:59 +0100 Subject: [PATCH 02/44] refactor: merge breadcrumb with route metadata --- app/routes/application/application.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/routes/application/application.js b/app/routes/application/application.js index 399a33741..3ed3e2ba7 100644 --- a/app/routes/application/application.js +++ b/app/routes/application/application.js @@ -26,6 +26,12 @@ export class ApplicationRoute extends Route { controller.pageActions = this.pageActions; controller.tabItems = this.tabItems; } + + buildRouteInfoMetadata() { + return { + breadcrumb: this.breadcrumb, + }; + } } export class AuthenticatedRoute extends ApplicationRoute { From d21fc6f42ccea426d9b10627d04789437f194f66 Mon Sep 17 00:00:00 2001 From: guidojw <35309288+guidojw@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:13:45 +0100 Subject: [PATCH 03/44] fix: edit article title --- app/routes/articles/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/articles/edit.js b/app/routes/articles/edit.js index 419fb892a..06e6d2c1d 100644 --- a/app/routes/articles/edit.js +++ b/app/routes/articles/edit.js @@ -1,7 +1,7 @@ import { AuthenticatedRoute } from 'amber-ui/routes/application/application'; export default class EditArticleRoute extends AuthenticatedRoute { - breadcrumb = { title: 'Activiteit aanpassen' }; + breadcrumb = { title: 'Artikel aanpassen' }; canAccess(model) { return this.abilities.can('edit article', model); From 37727546b116e0d4ecdbbf67a9d53695eb56e66a Mon Sep 17 00:00:00 2001 From: guidojw <35309288+guidojw@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:25:27 +0100 Subject: [PATCH 04/44] refactor: remove `ember-crumbly` and update BreadCrumbs component --- app/components/bread-crumbs.hbs | 16 +- app/components/bread-crumbs.js | 3 - app/components/header-nav.hbs | 33 ++- app/controllers/application.js | 21 +- app/templates/application.hbs | 2 +- package.json | 2 +- yarn.lock | 392 +++++++++++++++++++++++++++++--- 7 files changed, 411 insertions(+), 58 deletions(-) delete mode 100644 app/components/bread-crumbs.js diff --git a/app/components/bread-crumbs.hbs b/app/components/bread-crumbs.hbs index 3a22524c6..83175c79a 100644 --- a/app/components/bread-crumbs.hbs +++ b/app/components/bread-crumbs.hbs @@ -1,11 +1,15 @@
\ No newline at end of file diff --git a/app/components/bread-crumbs.js b/app/components/bread-crumbs.js deleted file mode 100644 index 057907951..000000000 --- a/app/components/bread-crumbs.js +++ /dev/null @@ -1,3 +0,0 @@ -import BreadCrumbs from 'ember-crumbly/components/bread-crumbs'; - -export default class CustomBreadCrumbs extends BreadCrumbs {} diff --git a/app/components/header-nav.hbs b/app/components/header-nav.hbs index 6f84dbfbf..fc882f11d 100644 --- a/app/components/header-nav.hbs +++ b/app/components/header-nav.hbs @@ -1,5 +1,11 @@ -