-
Notifications
You must be signed in to change notification settings - Fork 21
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 create search preference and schedule a service (#29bdb9f) #40
Conversation
… the button on the search page(#29bdb9f)
…tion to schedule a job(#29bdb9f)
…d scheduling the job(#29bdb9f)
…threshold(#29bdb9f)
…ference and stringify the query when storing it in preference, also passed viewSize when fetching the data for jobs(#29bdb9f)
|
||
<ion-item> | ||
<ion-label>{{ $t("Rule name") }}</ion-label> | ||
<ion-input placeholder="rule name" v-model="jobName"/> |
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.
Internationalise placeholder
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 placeholder in internationalization file
closeModal() { | ||
modalController.dismiss({ dismissed: true }); | ||
}, | ||
async createSearchPreference() { |
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.
async createSearchPreference() { | |
async saveThresholdRule() { |
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.
Improved method name
src/store/modules/util/actions.ts
Outdated
}, | ||
"entityName": "ShopifyConfig", | ||
"noConditionFind": "Y", | ||
"fieldList": ["shopifyConfigId", "productStoreId"] |
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.
Pass viewSize
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.
For now added viewSize as 1.
src/views/SelectProduct.vue
Outdated
}, | ||
methods: { | ||
updateInclusionQuery(value: string, type: string) { | ||
this.included[type].includes(value) ? this.included[type].splice(this.included[type].indexOf(value), 1) : this.included[type].push(value) |
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.
Assign this.included[type] to a variable and then use
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.
Done Sir
src/views/SelectProduct.vue
Outdated
// to remove that value from the query filter | ||
this.query.json['filter'] = ["docType: PRODUCT"] | ||
|
||
this.included['tags'].length > 0 && this.query.json['filter'].push(`tags: (${this.included['tags'].join(' OR ')})`) |
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.
We could iterate using reduce and prepare it dynamically
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.
Sir, used reduce to prepare the query.
…d method name and updated en.json file(#29bdb9f)
…l dynamic(#29bdb9f)
…shopify config id(#29bdb9f)
No description provided.