2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +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() { created() {
this.doc.on('change', () => { this.doc.on('change', () => {
this.isDirty = this.doc._dirty;
this.updateShowSubmittable(); this.updateShowSubmittable();
}); });
this.updateShowSubmittable(); this.updateShowSubmittable();
}, },
methods: { methods: {
updateShowSubmittable() { updateShowSubmittable() {
this.isDirty = this.doc._dirty;
this.showSubmit = this.showSubmit =
this.meta.isSubmittable this.meta.isSubmittable
&& !this.isDirty && !this.isDirty