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

Implemented: logic to select location on product detail page (#22qm8pq). #71

Merged
merged 22 commits into from
Mar 24, 2022

Conversation

meet-aniket
Copy link
Contributor

No description provided.

methods: {
async openLocationPicker() {
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
async openLocationPicker() {
async selectLocation() {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed method name.

"entityName": "ProductFacilityLocation",
"fieldsToSelect": [ "locationSeqId" ]
}
resp = await UserService.getFacilityLocations(params);
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
resp = await UserService.getFacilityLocations(params);
resp = await ProductService.getFacilityLocations(params);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed Service name.

},
{
text: translate('Confirm'),
handler: (value) => {
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
handler: (value) => {
handler: (data) => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed parameter name.

this.facilityLocations = this.facilityLocations.map((location: any) => {
return {
locationSeqId: location.locationSeqId,
locationLabel: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId
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
locationLabel: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId
location: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId

<ion-item>
<ion-label>{{ $t("Location") }}</ion-label>
<ion-chip @click="selectLocation">
<ion-label>{{ locationId }}</ion-label>
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
<ion-label>{{ locationId }}</ion-label>
<ion-label>{{ location }}</ion-label>

@meet-aniket meet-aniket changed the title Impelented: logic to select location on pdp page (#22qm8pq). implemented: logic to select location on pdp page (#22qm8pq). Mar 10, 2022
@adityasharma7 adityasharma7 changed the title implemented: logic to select location on pdp page (#22qm8pq). Implemented: logic to select location on product detail page (#22qm8pq). Mar 23, 2022
@@ -0,0 +1,6 @@
---
title: 'Impelented: logic to select location on pdp page'
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
title: 'Impelented: logic to select location on pdp page'
title: 'Implemented: logic to select location on product detail page'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improved title of the changelog.

methods: {
async selectLocation() {
this.pickerOptions = await this.facilityLocations.map((location: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could make pickerOptions local variable instead

src/views/count.vue Show resolved Hide resolved
src/views/count.vue Outdated Show resolved Hide resolved
src/views/count.vue Outdated Show resolved Hide resolved
src/views/count.vue Show resolved Hide resolved
@adityasharma7 adityasharma7 merged commit 0a317dc into hotwax:main Mar 24, 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.

3 participants