share invoice on email frontend

This commit is contained in:
Peter Papp
2021-05-11 08:51:41 +02:00
parent 5ea898d716
commit 1ea8f2ce60
8 changed files with 230 additions and 38 deletions

View File

@@ -5,6 +5,13 @@ import {events} from './bus'
const OasisHelpers = {
install(Vue) {
Vue.prototype.$shareInvoice = function (entry) {
events.$emit('popup:open', {
name: 'share-invoice',
item: entry
})
}
Vue.prototype.$editInvoice = function (entry) {
this.$router.push({name: 'EditInvoice', params: {id: entry.id}})
events.$emit('file-preview:hide')