This commit is contained in:
2021-07-07 13:55:06 +00:00
parent 4bf0d88a43
commit bdb9aa1854
2 changed files with 11 additions and 4 deletions

View File

@@ -879,15 +879,12 @@ export default {
User is left with a existing wo opened, a new woitem added and the wo is dirty and ready to save
*/
console.log("C1111OPY ITEM TO WO CALLED");
if (!this.copyItemWoNumber) {
return;
}
console.log("dirty?", this.value.formState);
if (this.value.formState.dirty) {
if (this.pvm.formState.dirty) {
if ((await window.$gz.dialog.confirmLeaveUnsaved()) !== true) {
return;
}