-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block user navigating to details page if no records after review action(#24pp0fm) #27
Conversation
src/views/PurchaseOrder.vue
Outdated
name:'PurchaseOrderDetail' | ||
}) | ||
} else { | ||
showToast(translate("Something went wrong")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is an error message just for this condition, we should specifically say:
"Please upload a purchase order to continue"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the message for case when file is not uploaded.
…t when file is not uploaded(#24pp0fm)
src/views/PurchaseOrder.vue
Outdated
return field === ""; | ||
}); | ||
if (this.content.length <= 0) { | ||
showToast(translate("Please upload a purchase order to continue")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showToast(translate("Please upload a purchase order to continue")); | |
showToast(translate("Please upload a valid purchase order csv to continue")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the requested change.
name:'PurchaseOrderDetail' | ||
}) | ||
} else { | ||
showToast(translate("Select all the fields to continue")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add both the text to en.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added static text in en.json file
Closes #65