1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

page numbering engine

This commit is contained in:
Harvey Kandola 2017-12-10 14:05:23 +00:00
parent 5de856e579
commit c5c988709d
9 changed files with 198 additions and 26 deletions

View file

@ -10,7 +10,6 @@
// https://documize.com
import { computed } from '@ember/object';
import Component from '@ember/component';
import TooltipMixin from '../../../mixins/tooltip';
@ -102,7 +101,7 @@ export default Component.extend(TooltipMixin, {
this.set('codeEditor', null);
}
this.destroyTooltips();
this.removeT0oltips();
},

View file

@ -88,7 +88,7 @@ export default Component.extend(SectionMixin, NotifierMixin, TooltipMixin, {
},
willDestroyElement() {
this.destroyTooltips();
this.removeTooltips();
},
getBoardLists() {

View file

@ -21,13 +21,14 @@ export default Model.extend({
pageType: attr('string'),
level: attr('number', { defaultValue: 1 }),
sequence: attr('number', { defaultValue: 0 }),
numbering: attr('string'),
revisions: attr('number', { defaultValue: 0 }),
blockId: attr('string'),
title: attr('string'),
body: attr('string'),
rawBody: attr('string'),
meta: attr(),
tagName: computed('level', function () {
return "h2";
// return "h" + (this.get('level') + 1);

View file

@ -3,7 +3,7 @@
<div class="col-10">
<div class="document-structure">
<div class="page-header">
<span class="page-number">1</span>
<span class="page-number">{{page.numbering}}</span>
<span class="page-title">{{page.title}}</span>
</div>
</div>