1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

WIP document view

This commit is contained in:
Harvey Kandola 2017-12-05 19:03:38 +00:00
parent 72615ba77b
commit 836b7f3fb4
20 changed files with 484 additions and 621 deletions

View file

@ -11,11 +11,10 @@
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import NotifierMixin from '../../mixins/notifier';
import TooltipMixin from '../../mixins/tooltip';
import DropdownMixin from '../../mixins/dropdown';
import ModalMixin from '../../mixins/modal';
export default Component.extend(NotifierMixin, TooltipMixin, DropdownMixin, {
export default Component.extend(ModalMixin, TooltipMixin, {
userService: service('user'),
categoryService: service('category'),
appMeta: service(),
@ -114,13 +113,11 @@ export default Component.extend(NotifierMixin, TooltipMixin, DropdownMixin, {
let cat = this.get('category').findBy('id', id);
this.set('deleteId', cat.get('id'));
$('#category-delete-modal').modal('dispose');
$('#category-delete-modal').modal({show: true});
this.modalOpen('#category-delete-modal', {show: true});
},
onDelete() {
$('#category-delete-modal').modal('hide');
$('#category-delete-modal').modal('dispose');
this.modalClose('#category-delete-modal');
this.get('categoryService').delete(this.get('deleteId')).then(() => {
this.load();