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

misc. fixes

This commit is contained in:
Harvey Kandola 2016-06-24 14:21:46 -07:00
parent e03bb4d6ee
commit 48a60f0fcd
4 changed files with 12 additions and 10 deletions

View file

@ -67,6 +67,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
willDestroyElement() {
this.eventBus.unsubscribe('documentPageAdded');
this.destroyTooltips();
},
onDocumentPageAdded(pageId) {

View file

@ -22,6 +22,10 @@ export default Ember.Component.extend(TooltipMixin, {
}
},
willDestroyElement() {
this.destroyTooltips();
},
actions: {
editPage(id) {
this.attrs.onEditPage(id);

View file

@ -197,7 +197,6 @@ export default Ember.Controller.extend(NotifierMixin, {
},
onDocumentDelete() {
console.log("deleting " + this.get('model.id'));
let self = this;
this.get('documentService').deleteDocument(this.get('model.id')).then(function() {

View file

@ -7,11 +7,9 @@
<i class="material-icons">mode_edit</i>
</div>
{{/link-to}}
{{#unless page.firstPage}}
<div class="round-button-mono page-delete-button" data-tooltip="Delete" data-tooltip-position="top center" {{action 'deletePage' page.id}}>
<i class="material-icons">delete</i>
</div>
{{/unless}}
{{/if}}
</div>
</div>