Skip to content
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

Merged
merged 18 commits into from
Nov 21, 2022

Conversation

disha1202
Copy link
Contributor

@disha1202 disha1202 commented Mar 30, 2022

Closes #65

name:'PurchaseOrderDetail'
})
} else {
showToast(translate("Something went wrong"));
Copy link
Contributor

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"

Copy link
Contributor Author

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.

return field === "";
});
if (this.content.length <= 0) {
showToast(translate("Please upload a purchase order to continue"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
showToast(translate("Please upload a purchase order to continue"));
showToast(translate("Please upload a valid purchase order csv to continue"));

Copy link
Contributor Author

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"));
Copy link
Contributor

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

Copy link
Contributor Author

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

src/views/PurchaseOrder.vue Outdated Show resolved Hide resolved
src/views/PurchaseOrder.vue Outdated Show resolved Hide resolved
src/views/PurchaseOrder.vue Outdated Show resolved Hide resolved
src/views/PurchaseOrder.vue Outdated Show resolved Hide resolved
@adityasharma7 adityasharma7 merged commit edac349 into hotwax:main Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User should be blocked from review action if the file is not uploaded
4 participants