2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +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" />
</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 class="pl-1 pr-4 pt-2 pb-4 border-b flex items-center justify-between">
<FormControl
@ -156,6 +165,9 @@ export default {
insertDoc() {
this.doc.insert();
},
submitDoc() {
this.doc.submit();
},
routeToList() {
this.$router.push(`/list/${this.doctype}`);
}