mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
Fix Ember lint issues and print view
This commit is contained in:
parent
40237344e2
commit
715c31a1da
15 changed files with 53 additions and 37 deletions
|
@ -17,6 +17,8 @@ import Modals from '../../mixins/modal';
|
|||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend(Modals, {
|
||||
classNames: ['document-meta-wrapper', 'non-printable'],
|
||||
appMeta: service(),
|
||||
documentService: service('document'),
|
||||
sessionService: service('session'),
|
||||
categoryService: service('category'),
|
||||
|
@ -62,6 +64,12 @@ export default Component.extend(Modals, {
|
|||
if (!this.get('permissions.documentEdit')) return;
|
||||
|
||||
this.get('router').transitionTo('document.settings', {queryParams: {tab: 'category'}});
|
||||
},
|
||||
|
||||
onSelectVersion(version) {
|
||||
let space = this.get('space');
|
||||
|
||||
this.get('router').transitionTo('document', space.get('id'), space.get('slug'), version.documentId, this.get('document.slug'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue