mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
Fix up post-Enterprise Edition merge
This commit is contained in:
parent
6f495dd1c6
commit
eb56169fe5
4 changed files with 1 additions and 16 deletions
|
@ -32,7 +32,7 @@ export default Component.extend(Notifier, {
|
|||
if (this.get('hasNameError')) return;
|
||||
if (!this.get('permissions.documentEdit')) return;
|
||||
|
||||
this.set('document.name', this.get('docName'));
|
||||
this.set('document.name', this.get('docName').trim());
|
||||
this.set('document.excerpt', this.get('docExcerpt').trim());
|
||||
|
||||
let cb = this.get('onSaveDocument');
|
||||
|
|
|
@ -62,14 +62,6 @@ export default Component.extend(AuthMixin, Notifier, {
|
|||
this.set('spaceType', t);
|
||||
},
|
||||
|
||||
// onSetLikes(l) {
|
||||
// this.set('allowLikes', l);
|
||||
|
||||
// schedule('afterRender', () => {
|
||||
// if (l) this.$('#space-likes-prompt').focus();
|
||||
// });
|
||||
// },
|
||||
|
||||
onSave() {
|
||||
if (!this.get('isSpaceAdmin')) return;
|
||||
|
||||
|
|
|
@ -96,4 +96,3 @@
|
|||
onPageLevelChange=(action "onPageLevelChange")
|
||||
onPageSequenceChange=(action "onPageSequenceChange")}}
|
||||
{{/layout/master-content}}
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<div id="page-{{page.id}}" data-id={{page.id}} data-type={{page.contentType}}>
|
||||
|
||||
{{#if editMode}}
|
||||
|
||||
<div class="wysiwyg">
|
||||
{{document/document-editor
|
||||
document=document
|
||||
|
@ -11,9 +9,7 @@
|
|||
onCancel=(action "onCancelEdit")
|
||||
onAction=(action "onSavePage")}}
|
||||
</div>
|
||||
|
||||
{{else}}
|
||||
|
||||
{{document/page-heading
|
||||
page=page
|
||||
meta=meta
|
||||
|
@ -37,7 +33,5 @@
|
|||
<div class="wysiwyg">
|
||||
{{section/base-renderer page=page}}
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue