mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Revamp document view using new layout
New master page system and UI framework implemented on document view. Sidebar contains ToC and Attachments.
This commit is contained in:
parent
b4b3dbcb4c
commit
7cdf97aa86
27 changed files with 348 additions and 263 deletions
|
@ -21,6 +21,7 @@ export default Controller.extend(Notifier, {
|
|||
sectionService: service('section'),
|
||||
linkService: service('link'),
|
||||
router: service(),
|
||||
sidebarTab: 'toc',
|
||||
tab: 'content',
|
||||
queryParams: ['currentPageId', 'source'],
|
||||
showRevisions: computed('permissions', 'document.protection', function() {
|
||||
|
@ -32,6 +33,10 @@ export default Controller.extend(Notifier, {
|
|||
}),
|
||||
|
||||
actions: {
|
||||
onSidebarChange(tab) {
|
||||
this.set('sidebarTab', tab);
|
||||
},
|
||||
|
||||
onTabChange(tab) {
|
||||
this.set('tab', tab);
|
||||
if (tab === 'content') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue