-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into DES/enhancement/#732-vlc-refactor
# Conflicts: # app/components/sessions/session-agenda-nav.hbs
- Loading branch information
Showing
17 changed files
with
137 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
app/components/publications/publication/publication-navigation.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<WebComponents::AuTabs @reversed="true"> | ||
<WebComponents::AuTab @isHierarchicalBack="true" @route="publications" | ||
data-test-publication-case-nav-go-back></WebComponents::AuTab> | ||
<WebComponents::AuTab @route="publications.publication.case" data-test-publication-case-nav-case> | ||
{{t "agendaitem-case"}} | ||
</WebComponents::AuTab> | ||
{{!-- TODO adapt tab content classes to new CSS once available in CSS-package --}} | ||
<WebComponents::AuTab @route="publications.publication.documents" data-test-publication-case-nav-documents> | ||
<div class="auk-u-flex auk-u-flex--center"> | ||
<span class="auk-u-mr-2">{{t "documents"}}</span> | ||
{{#unless this.loadData.isRunning}} | ||
<p>({{this.documentsCount}})</p> | ||
{{/unless}} | ||
</div> | ||
</WebComponents::AuTab> | ||
<WebComponents::AuTab @route="publications.publication.translations" data-test-publication-case-nav-translations> | ||
<div class="auk-u-flex auk-u-flex--center"> | ||
<span class="auk-u-mr-2">{{t "translations"}}</span> | ||
</div> | ||
</WebComponents::AuTab> | ||
<WebComponents::AuTab @route="publications.publication.publishpreview" data-test-publication-case-nav-publishpreview> | ||
<div class="auk-u-flex auk-u-flex--center"> | ||
<span class="auk-u-mr-2">{{t "publishpreview-requests"}}</span> | ||
</div> | ||
</WebComponents::AuTab> | ||
</WebComponents::AuTabs> |
26 changes: 26 additions & 0 deletions
26
app/components/publications/publication/publication-navigation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Component from '@glimmer/component'; | ||
import { tracked } from '@glimmer/tracking'; | ||
import { task } from 'ember-concurrency-decorators'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default class PublicationNavigation extends Component { | ||
@service store; | ||
|
||
@tracked documentsCount = 0; | ||
|
||
constructor() { | ||
super(...arguments); | ||
this.loadData.perform(); | ||
} | ||
|
||
@task | ||
*loadData() { | ||
const pieces = yield this.store.query('piece', | ||
{ | ||
'filter[cases][publication-flow][:id:]': this.args.publicationFlow.id, | ||
'page[size]': 1, | ||
} | ||
); | ||
this.documentsCount = pieces.meta.count; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.