2
0
mirror of https://github.com/frappe/books.git synced 2024-09-21 03:39:02 +00:00
books/ui/components/Print/PrintActions.vue

38 lines
766 B
Vue
Raw Normal View History

2018-07-13 07:29:57 +00:00
<template>
<div class="frappe-print-actions d-flex justify-content-between align-items-center p-3 border-bottom">
<h5 class="m-0">{{ title }}</h5>
<f-button primary @click="$emit('print')">{{ _('Print') }}</f-button>
<f-button secondary @click="$emit('view-form')">{{ _('View Form') }}</f-button>
</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>