diff --git a/app/models/agendaitem.js b/app/models/agendaitem.js index 3ed687396a..b023911f37 100644 --- a/app/models/agendaitem.js +++ b/app/models/agendaitem.js @@ -162,40 +162,6 @@ export default ModelWithModifier.extend({ return documentContainers && documentContainers.some((documentContainers) => documentContainers.checkAdded); }), - case: computed('treatments.firstObject.subcase.case', async function() { - const agendaItemTreatments = await this.get('treatments'); - const agendaItemTreatment = agendaItemTreatments.firstObject; // TODO: Agendaitem can have many treatments (decisions) - const subcase = await agendaItemTreatment.get('subcase'); - if (!subcase) { - return false; - } - const _case = await subcase.get('case'); - if (!_case) { - return false; - } - return _case; - }), - - publicationFlow: computed('treatments.firstObject.subcase.case.publicationFlow', async function() { - const _case = await this.get('case'); - if (!_case) { - return false; - } - const publicationFlow = await _case.get('publicationFlow'); - // Preload case. - await publicationFlow.get('case'); - await publicationFlow.reload(); - if (!publicationFlow) { - return false; - } - return publicationFlow; - }), - - publicationFlowId: computed('treatments.firstObject.subcase.case.publicationFlow', async function() { - const publicationFlow = await this.get('publicationFlow'); - return publicationFlow.id; - }), - sortedApprovals: computed('approvals.@each', async function() { return PromiseArray.create({ promise: this.store.query('approval', { diff --git a/app/pods/styleguide/avatar/route.js b/app/pods/styleguide/avatar/route.js new file mode 100644 index 0000000000..662fc3e739 --- /dev/null +++ b/app/pods/styleguide/avatar/route.js @@ -0,0 +1,9 @@ +import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; +import Route from '@ember/routing/route'; + +export default class AvatarRoute extends Route.extend(AuthenticatedRouteMixin) { + model() { + // Normally we would query store here, but for now, we get the mocks + return null; + } +} diff --git a/app/pods/styleguide/avatar/template.hbs b/app/pods/styleguide/avatar/template.hbs new file mode 100644 index 0000000000..6023f6f09a --- /dev/null +++ b/app/pods/styleguide/avatar/template.hbs @@ -0,0 +1,51 @@ +{{!-- template-lint-disable --}} + + + + {{!-- BEGIN-SNIPPET avatar-small --}} +
+ +
+ {{!-- END-SNIPPET --}} +
+ + + {{!-- BEGIN-SNIPPET avatar-regular --}} +
+ +
+ {{!-- END-SNIPPET --}} +
+ + + {{!-- BEGIN-SNIPPET avatar-image --}} +
+ avatar +
+ {{!-- END-SNIPPET --}} +
+ + + {{!-- BEGIN-SNIPPET avatar-avatar-and-text --}} +
+
+ +
+
+

Jan Jambon

+
+
+ {{!-- END-SNIPPET --}} +
\ No newline at end of file diff --git a/app/pods/styleguide/template.hbs b/app/pods/styleguide/template.hbs index c7cd2788bb..7202caf077 100644 --- a/app/pods/styleguide/template.hbs +++ b/app/pods/styleguide/template.hbs @@ -109,6 +109,9 @@

{{t "style-guide-static-html-components"}}