mirror of
https://github.com/frappe/books.git
synced 2024-12-25 12:10:06 +00:00
minor
This commit is contained in:
parent
9fdc94bd93
commit
610d592310
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user