2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

fix: Submit button in QuickEdit

This commit is contained in:
Faris Ansari 2019-11-09 01:28:58 +05:30
parent 3c3473fe4e
commit 6f79916d1b

View File

@ -13,6 +13,15 @@
> >
<feather-icon name="check" class="text-white" /> <feather-icon name="check" class="text-white" />
</Button> </Button>
<Button
:icon="true"
@click="submitDoc"
type="primary"
v-if="meta && meta.isSubmittable && !doc.submitted && !doc._notInserted"
class="ml-2 flex"
>
<feather-icon name="lock" class="text-white" />
</Button>
</div> </div>
<div class="pl-1 pr-4 pt-2 pb-4 border-b flex items-center justify-between"> <div class="pl-1 pr-4 pt-2 pb-4 border-b flex items-center justify-between">
<FormControl <FormControl
@ -156,6 +165,9 @@ export default {
insertDoc() { insertDoc() {
this.doc.insert(); this.doc.insert();
}, },
submitDoc() {
this.doc.submit();
},
routeToList() { routeToList() {
this.$router.push(`/list/${this.doctype}`); this.$router.push(`/list/${this.doctype}`);
} }