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

Implement new toolbar for document view

This commit is contained in:
sauls8t 2018-12-19 19:23:17 +00:00
parent 93253be0f2
commit 329c43eba0
9 changed files with 59 additions and 50 deletions

View file

@ -64,6 +64,14 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
},
actions: {
onShowTemplateModal() {
this.modalOpen("#document-template-modal", {show:true}, "#new-template-name");
},
onShowDeleteModal() {
this.modalOpen("#document-delete-modal", {show:true});
},
onDocumentDelete() {
this.modalClose('#document-delete-modal');