2
0
mirror of https://github.com/frappe/books.git synced 2024-12-29 13:22:41 +00:00
books/ui/components/Print/PrintActions.vue
2018-07-16 08:49:02 +05:30

42 lines
816 B
Vue

<template>
<div class="frappe-print-actions d-flex justify-content-between align-items-center p-3 border-bottom">
<h5 class="m-0">Print {{ title }}</h5>
<div class="button-group">
<f-button secondary @click="$emit('view-form')">{{ _('View Form') }}</f-button>
<f-button primary @click="$emit('pdf')">{{ _('PDF') }}</f-button>
</div>
</div>
</template>
<script>
import frappe from 'frappejs';
export default {
props: ['title'],
data() {
return {
isDirty: false,
showSubmit: false,
showRevert: false
}
},
created() {},
methods: {},
computed: {
meta() {
return frappe.getMeta(this.doc.doctype);
},
}
}
</script>
<style lang="scss">
@import "../../styles/variables";
.frappe-print-actions {
background-color: $white;
}
</style>