2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
This commit is contained in:
Faris Ansari 2018-10-23 02:21:34 +05:30
parent 9fdc94bd93
commit 610d592310

View File

@ -34,13 +34,14 @@ export default {
},
created() {
this.doc.on('change', () => {
this.isDirty = this.doc._dirty;
this.updateShowSubmittable();
});
this.updateShowSubmittable();
},
methods: {
updateShowSubmittable() {
this.isDirty = this.doc._dirty;
this.showSubmit =
this.meta.isSubmittable
&& !this.isDirty