1
0
Fork 0
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:
Harvey Kandola 2018-12-18 19:03:34 +00:00
parent b4b3dbcb4c
commit 7cdf97aa86
27 changed files with 348 additions and 263 deletions

View file

@ -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') {